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 0233ff4cc8
commit 34843fafdb

View file

@ -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
#=================================================