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:
parent
56592acad2
commit
703ed9877d
2 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue