Update INSTALL.sh

This commit is contained in:
Stefan Pejcic 2024-10-10 18:20:29 +02:00 committed by GitHub
parent 76a1194d26
commit 8be52ab5bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1618,6 +1618,13 @@ install_openadmin(){
git clone -b $py_enchoded_for_distro --single-branch https://github.com/stefanpejcic/openadmin $OPENPADMIN_DIR
cd $OPENPADMIN_DIR
pip install --default-timeout=3600 -r requirements.txt > /dev/null 2>&1 || pip install --default-timeout=3600 -r requirements.txt --break-system-packages > /dev/null 2>&1
# on debian12 yaml is also needed to read conf files!
if [ -f /etc/os-release ] && grep -q "Debian" /etc/os-release; then
apt install python3-yaml -y > /dev/null 2>&1
fi
cp -fr /usr/local/admin/service/admin.service ${SERVICES_DIR}admin.service > /dev/null 2>&1
cp -fr /usr/local/admin/service/watcher.service ${SERVICES_DIR}watcher.service > /dev/null 2>&1