1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

keep correct permissions

This commit is contained in:
rodinux 2023-12-29 16:42:00 +01:00
parent c24d13169f
commit b7cffdfc20

View file

@ -111,7 +111,11 @@ if [ ! -d "$data_dir/data" ]; then
ynh_script_progression --message="Adding a configuration directory..." --weight=5
mkdir "$data_dir/data"
chmod 770 "$data_dir/data"
chown -R $app:www-data "$data_dir/data/"
chown -R $app:www-data "$data_dir/data"
else
chown -R $app:www-data "$data_dir/cache"
chown $app:www-data "$data_dir/index.html"
fi
if [ ! -f "$data_dir/data/config.local.user.php" ]; then