1
0
Fork 0
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:
yalh76 2019-02-02 21:58:56 +01:00
parent cc32a1b479
commit 20f885e365

View file

@ -31,7 +31,6 @@ cache=$(ynh_app_setting_get "$app" cache)
size=$(ynh_app_setting_get "$app" size) size=$(ynh_app_setting_get "$app" size)
registration=$(ynh_app_setting_get "$app" registration) registration=$(ynh_app_setting_get "$app" registration)
if [$(ynh_app_setting_get "$app" psql_db)] if [$(ynh_app_setting_get "$app" psql_db)]
then then
db_name=$(ynh_app_setting_get "$app" psql_db) db_name=$(ynh_app_setting_get "$app" psql_db)
@ -42,7 +41,6 @@ then
ynh_app_setting_delete "$app" psqlpwd ynh_app_setting_delete "$app" psqlpwd
fi fi
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
@ -161,6 +159,13 @@ ynh_system_user_create "$app" "$final_path"
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#=================================================
# CREATE LOG FOLDER
#=================================================
mkdir -p "/var/log/$app"
chown -R "$app":"$app" "/var/log/$app"
#================================================= #=================================================
# CONFIGURE # CONFIGURE
#================================================= #=================================================