Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-09 06:41:09 +01:00
committed by GitHub
parent 0bfd9f5c9c
commit ef131b4298

View File

@@ -76,6 +76,11 @@ for files in "/scripts" "/etc/cont-init.d"; do
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils"
fi
if [[ $(grep -rnw "$files/" -e 'sqlite') ]]; then
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES sqlite"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES sqlite3"
fi
if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then
[ $PACKMANAGER = "apk" ] && [[ $(pip -V) ]] \
|| apk add --no-cache py3-pip \
@@ -97,6 +102,8 @@ eval "$PACKAGES"
# Replace nginx if installed
if [ -d /etc/nginx2 ]; then
cp -rlf /etc/nginx2 /etc/nginx && rm -r /etc/nginx2
mkdir -p /var/log/nginx
touch /var/log/nginx/error.log
fi
##################