diff --git a/scripts/install b/scripts/install index d66615a..462868a 100644 --- a/scripts/install +++ b/scripts/install @@ -39,6 +39,9 @@ pushd $install_dir --no-setup-nginx --no-setup-ssl --url http://$domain$path --port $port \ --db mysql --dbhost localhost --dbuser $db_user --dbpass $db_pwd --dbname $db_name \ --mail SMTP --mailhost localhost --mailport 465 + + # Cleanup cache + ynh_secure_remove --file=".cache/yarn" popd #================================================= @@ -85,4 +88,3 @@ ynh_systemd_action --service_name=$app --action="start" --line_match="Ghost boot #================================================= ynh_script_progression --message="Installation of $app completed" - diff --git a/scripts/upgrade b/scripts/upgrade index f5d59ad..72886ff 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -44,7 +44,7 @@ ynh_npm install --global npm@latest ynh_npm install --global yarn #================================================= -# DOWNLOAD, CHECK AND UNPACK SOURCE +# UPGRADE #================================================= # Up to v5.26.4~ynh1, we were downloading the source code and building the app by ourselves @@ -95,6 +95,10 @@ then fi + +# Cleanup cache +ynh_secure_remove --file="$install_dir/.cache/yarn" + #================================================= # NGINX CONFIGURATION #=================================================