Update admin page

This commit is contained in:
2024-10-22 20:01:09 +02:00
parent 700d4c872e
commit a5cf31a5fd
7 changed files with 48 additions and 14 deletions

View File

@@ -11,17 +11,20 @@ hugoexternal=true
if [ -n "$(which apt)" ]
then
asroot apt update
asroot apt install -y python3 nodejs findutils git wget tar gzip p7zip-full #zip
asroot apt install -y python3 python-pip nodejs findutils git wget tar gzip
if [ "$(uname -o)" != Android ]
then asroot apt install -y npm
then
# Debian(s)
asroot apt install -y npm p7zip-full
else
asroot apt install -y hugo
# Termux
asroot apt install -y hugo p7zip
hugoexternal=false
fi
elif [ -n "$(which apk)" ]
then
asroot apk update
asroot apk add hugo python3 py3-pip nodejs npm findutils git wget tar gzip 7zip #zip
asroot apk add hugo python3 py3-pip nodejs npm findutils git wget tar gzip 7zip
hugoexternal=false
fi

View File

@@ -13,6 +13,6 @@ swd="$(dirname "$(realpath "$0")")"
if [ ! -e "${swd}/Lib/Globals.sh" ]
then swd="${swd}/.."
fi
#eval "$(sed -e 's| = |=|g' "${swd}/../config.toml")"
eval "$(sed -e 's| = |=|g' "${swd}/../assets/SiteProps.toml")"
Python3="$([ -n "$(which python3)" ] && echo python3 || echo python)"