1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Cleanup Yarn cache

This commit is contained in:
tituspijean 2023-04-24 22:01:25 +02:00
parent 6dff889d0c
commit aef5cf98f2
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 8 additions and 2 deletions

View file

@ -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"

View file

@ -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
#=================================================