diff --git a/scripts/install b/scripts/install index 901659f..5e93dee 100644 --- a/scripts/install +++ b/scripts/install @@ -39,6 +39,7 @@ pushd "$install_dir/sources" popd mv "$install_dir/sources/build" "$install_dir/www" +ynh_secure_remove --file="$install_dir/sources" chown -R "$app:www-data" "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index e68dfa7..26b6b46 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -30,6 +30,7 @@ pushd "$install_dir/sources" popd mv "$install_dir/sources/build" "$install_dir/www" +ynh_secure_remove --file="$install_dir/sources" chown -R "$app:www-data" "$install_dir"