diff --git a/scripts/install b/scripts/install index d848767..98b3599 100644 --- a/scripts/install +++ b/scripts/install @@ -46,16 +46,15 @@ chmod 644 "/etc/cron.d/$app" ynh_script_progression --message="Adding a configuration file..." --weight=5 # Install configuration files -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" - 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" #================================================= # END OF SCRIPT