Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-09 21:45:06 +01:00
committed by GitHub
parent 44451bd9ac
commit 0aa8ecee90

View File

@@ -44,7 +44,7 @@ if ls /etc/nginx 1> /dev/null 2>&1; then
[ $VERBOSE = true ] && echo "nginx found" [ $VERBOSE = true ] && echo "nginx found"
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES nginx" [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES nginx"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES nginx" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES nginx"
# mv /etc/nginx /etc/nginx2 mv /etc/nginx /etc/nginx2
fi fi
# Scripts # Scripts
@@ -110,13 +110,13 @@ done
eval "$PACKAGES" eval "$PACKAGES"
# Replace nginx if installed # Replace nginx if installed
#if ls /etc/nginx2 1> /dev/null 2>&1; then if ls /etc/nginx2 1> /dev/null 2>&1; then
# [ $VERBOSE = true ] && echo "replace nginx2" [ $VERBOSE = true ] && echo "replace nginx2"
# cp -rlf /etc/nginx2/ /etc/nginx/ rm -r /etc/nginx
# rm -r /etc/nginx2 mv /etc/nginx2 /etc/nginx
# mkdir -p /var/log/nginx mkdir -p /var/log/nginx
# touch /var/log/nginx/error.log touch /var/log/nginx/error.log
#fi fi
####################### #######################
# INSTALL MANUAL APPS # # INSTALL MANUAL APPS #