Update UPDATE.sh

This commit is contained in:
Stefan Pejcic
2024-08-15 17:05:08 +02:00
committed by GitHub
parent 83f6e90cca
commit c1e465d97c

View File

@@ -84,6 +84,9 @@ FUNCTIONS=(
#notify user we started
print_header
# fix for bug with php not autostarting
php_fix
# update images!
update_docker_images
@@ -359,6 +362,16 @@ rm /etc/systemd/system/watcher.service
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
}
update_config_files() {