Update auto.sh

This commit is contained in:
2019-04-01 00:17:08 +09:00
parent 7ecd537b1d
commit bc1b82762d
+6
View File
@@ -170,6 +170,12 @@ mkdir -p ${NGX_LIB}
### Check for old files
if [ -f "${NGX_SBIN_PATH}.old" ]; then
### Test nginx configuration.
"$NGX_SBIN_PATH" -t > /dev/null 2>&1
if test $? -ne 0; then
echo "Failed nginx configuration test."
exit 1
fi
sleep 1
rm ${NGX_SBIN_PATH}.old
systemctl restart nginx