mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-18 03:50:32 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -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/
|
# cp -rlf /etc/nginx2/ /etc/nginx/
|
||||||
rm -r /etc/nginx2
|
# rm -r /etc/nginx2
|
||||||
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 #
|
||||||
|
|||||||
Reference in New Issue
Block a user