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

add a configuration file on need also reinstall the config.local.php file

This commit is contained in:
rodinux 2023-12-25 01:38:32 +01:00
parent 0f764f5672
commit 35a6b0759f

View file

@ -42,9 +42,13 @@ then
fi
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
chmod 650 "$install_dir/config.local.php"
chown $app:$app "$install_dir/config.local.php"
ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"
chmod 650 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/data/config.local.user.php"
fi
chmod -R o-rwx "$install_dir"