Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2024-08-20 12:49:50 +02:00 committed by GitHub
parent cbc7ea802b
commit 4b79b49f86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -408,15 +408,15 @@ download_new_admin() {
uninstall_watcher_service(){
systemctl stop watcher.service
systemctl disable watcher.service
service watcher stop
service watcher disable
rm -rf /usr/local/admin/scripts/watcher
rm /etc/systemd/system/watcher.service
systemctl daemon-reload
systemctl stop watcher.service
systemctl disable watcher.service
service watcher stop
service watcher disable
rm -rf /usr/local/admin/scripts/watcher
rm /etc/systemd/system/watcher.service
systemctl daemon-reload
}
@ -424,9 +424,9 @@ systemctl daemon-reload
php_fix(){
for username in $(opencli user-list --json | awk -F'"' '/username/ {print $4}'); do
docker exec "$username" bash -c 'sed -i "s/PHP82FPM_STATUS=\"off\"/PHP82FPM_STATUS=\"on\"/g" /etc/entrypoint.sh'
done
for username in $(opencli user-list --json | awk -F'"' '/username/ {print $4}'); do
docker exec "$username" bash -c 'sed -i "s/PHP82FPM_STATUS=\"off\"/PHP82FPM_STATUS=\"on\"/g" /etc/entrypoint.sh'
done
}