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-22 21:36:03 +02:00
parent 56592acad2
commit 703ed9877d
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 6 additions and 0 deletions

View file

@ -103,6 +103,7 @@ ynh_setup_source --dest_dir="$final_path"
mkdir -p $final_path/ghost/core/content/themes/casper
ynh_setup_source --dest_dir="$final_path/ghost/core/content/themes/casper" --source_id="casper"
git init "$final_path" -q
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"

View file

@ -63,6 +63,11 @@ 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
#=================================================