From ddc795b43c18ae13f724273ab97c8327fa2c620b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 29 Nov 2023 14:30:03 +0100 Subject: [PATCH] Remove source directory after build --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 65610ed..f4337ac 100755 --- a/scripts/install +++ b/scripts/install @@ -37,6 +37,7 @@ ynh_script_progression --message="Building Jellyfin Vue... (this will take some _patch_config_json "$install_dir/source" _npm_build_install "$install_dir/source" "$install_dir/www" "$path/" +ynh_secure_remove --file="$install_dir/source" #================================================= # SYSTEM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 16b8a87..0883b57 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,6 +33,7 @@ then _patch_config_json "$install_dir/source" _npm_build_install "$install_dir/source" "$install_dir/www" "$path/" + ynh_secure_remove --file="$install_dir/source" fi chown -R $app:www-data "$install_dir"