Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2025-04-14 13:14:31 +02:00 committed by GitHub
parent 05f0dd3aac
commit 6b45725d24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,6 @@ for dir in /home/*; do
user=$(basename "$dir")
if [[ -f "$file" ]]; then
cp /etc/openpanel/varnish/default.vcl file="$dir/default.vcl"
echo "- Updated Varnish default.vcl template for user: $user"
@ -20,4 +19,12 @@ for dir in /home/*; do
fi
fi
file="$dir/docker-compose.yml"
user=$(basename "$dir")
if [[ -f "$file" ]]; then
echo "Fixing permission issues in PHP containers.. You should restart services manually to re-apply changes."
sed -i 's/- APP_USER=${CONTEXT:-root}/- APP_USER=root/g' $file
sed -i 's/- APP_GROUP=${CONTEXT:-root}/- APP_GROUP=root/g' $file
fi
done