diff --git a/scripts/install b/scripts/install index 1c191f1..9edc574 100644 --- a/scripts/install +++ b/scripts/install @@ -24,8 +24,6 @@ ynh_script_progression --message="Setting up source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" -chown -R $app:www-data "$install_dir" - #================================================= # SYSTEM CONFIGURATION #================================================= @@ -41,8 +39,8 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config.json" --destination="$install_dir/config.json" -chmod 400 "$install_dir/config.json" -chown $app:$app "$install_dir/config.json" +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" #================================================= # END OF SCRIPT diff --git a/scripts/upgrade b/scripts/upgrade index 26bc2c0..3583ab8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,6 +43,7 @@ then ynh_setup_source --dest_dir="$install_dir" --keep="config.json" fi +chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" #================================================= @@ -52,8 +53,8 @@ chown -R $app:www-data "$install_dir" #ynh_add_config --template="../conf/config.json" --destination="$install_dir/config.json" -#chmod 400 "$install_dir/config.json" -#chown $app:$app "$install_dir/config.json" +#chmod -R o-rwx "$install_dir" +#chown -R $app:www-data "$install_dir" #================================================= # REAPPLY SYSTEM CONFIGURATIONS