You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo"The default config for AIO should now be created."
9
+
echo
10
+
else
11
+
echo
12
+
echo"There was an error creating the TLS certificate for AIO. Please try to create the cert yourself in the NPMplus UI and update the AIO proxy host to use this cert, see the NPMplus config in the AIO reverse proxy guide as an example for the TLS tab."
13
+
echo
14
+
fi
7
15
touch /data/aio.lock
8
-
echo"The default config for AIO should now be created. Please check the log for any errors and try to resolve them, then delete the aio.lock file and retry."
Copy file name to clipboardexpand all lines: rootfs/usr/local/bin/launch.sh
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Group ID: $(id -g)
10
10
-------------------------------------
11
11
"
12
12
13
-
if [ -z"$(find /data/tls/certbot/accounts/"$(echo "$ACME_SERVER"| sed "s|^https\?://\([^/]\+\).*$|\1|g")" -type f)" ];then
13
+
if [ -z"$(find /data/tls/certbot/accounts/"$(echo "$ACME_SERVER"| sed "s|^https\?://\([^/]\+\).*$|\1|g")" -type f2> /dev/null)" ];then
14
14
if [ "$(echo "$ACME_SERVER"| sed "s|^https\?://\([^/]\+\).*$|\1|g")"="acme.zerossl.com" ] && [ -z"$ACME_EAB_KID" ] && [ -z"$ACME_EAB_HMAC_KEY" ];then
15
15
if [ -z"$ACME_EMAIL" ];then
16
16
echo"ACME_EMAIL is required to use zerossl. Either set it or use a different acme server like letsencrypt (ACME_SERVER: https://acme-v02.api.letsencrypt.org/directory)"
Copy file name to clipboardexpand all lines: rootfs/usr/local/bin/start.sh
+11-15
Original file line number
Diff line number
Diff line change
@@ -44,8 +44,8 @@ if [ -n "$NC_AIO" ] && ! echo "$NC_AIO" | grep -q "^true$\|^false$"; then
44
44
sleep inf
45
45
fi
46
46
if [ "$NC_AIO"="true" ];then
47
-
if [ -z"$NC_DOMAIN" ];then
48
-
echo"NC_DOMAIN is required in AIO mode."
47
+
if [ -z"$NC_DOMAIN" ]||!echo"$NC_DOMAIN"| grep -q "\.";then
48
+
echo"NC_DOMAIN is unset (but required in AIO mode) or invalid, it needs to contain a dot."
49
49
sleep inf
50
50
fi
51
51
export DISABLE_HTTP="${DISABLE_HTTP:-true}"
@@ -138,18 +138,18 @@ if [ -n "$DEBUG" ]; then
138
138
fi
139
139
140
140
141
-
if [ -z"$TZ" ] ||!echo"$TZ"| grep -q "^[A-Za-z0-9_+-]\+/[A-Za-z0-9_+-]\+$";then
142
-
echo"TZ is unset or invalid, it can consist of lower and upper letters a-z A-Z, numbers 0-9, underscores, plus and minus signs which are split by a slash."
141
+
if [ -z"$TZ" ] ||[ !-s /usr/share/zoneinfo/"$TZ"];then
0 commit comments