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

Make sure final_path is a git repo²

This commit is contained in:
tituspijean 2022-09-26 23:24:42 +02:00
parent 703ed9877d
commit 814cd02abd
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -63,11 +63,6 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public
fi
# Make the final_path a git repo if needed
if [ ! -d "$final_path/.git" ]; then
git init "$final_path" -q
fi
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
@ -180,6 +175,11 @@ chown $app:$app "$final_path/.yarnrc.yml"
# BUILD GHOST
#==============================================
# Make the final_path a git repo if needed
if [ ! -d "$final_path/.git" ]; then
ynh_exec_as $app git init "$final_path" -q
fi
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building Ghost... (this will take some time and resources!)"