mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Add log folder during upgrade
This commit is contained in:
parent
0233ff4cc8
commit
34843fafdb
1 changed files with 7 additions and 2 deletions
|
@ -31,7 +31,6 @@ cache=$(ynh_app_setting_get "$app" cache)
|
|||
size=$(ynh_app_setting_get "$app" size)
|
||||
registration=$(ynh_app_setting_get "$app" registration)
|
||||
|
||||
|
||||
if [$(ynh_app_setting_get "$app" psql_db)]
|
||||
then
|
||||
db_name=$(ynh_app_setting_get "$app" psql_db)
|
||||
|
@ -42,7 +41,6 @@ then
|
|||
ynh_app_setting_delete "$app" psqlpwd
|
||||
fi
|
||||
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
|
@ -161,6 +159,13 @@ ynh_system_user_create "$app" "$final_path"
|
|||
|
||||
#=================================================
|
||||
# SPECIFIC UPGRADE
|
||||
#=================================================
|
||||
# CREATE LOG FOLDER
|
||||
#=================================================
|
||||
|
||||
mkdir -p "/var/log/$app"
|
||||
chown -R "$app":"$app" "/var/log/$app"
|
||||
|
||||
#=================================================
|
||||
# CONFIGURE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue