From 6ed8daec24876088d0743140623308b044741f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 20 Jun 2024 22:20:06 +0200 Subject: [PATCH] Cleanup sources after build --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) 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"