From 35a6b0759f0cfbf1cfd3d8edf0eb6c7eb9f2efcf Mon Sep 17 00:00:00 2001 From: rodinux Date: Mon, 25 Dec 2023 01:38:32 +0100 Subject: [PATCH] add a configuration file on need also reinstall the config.local.php file --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 84be02f..68e5659 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"