From ac30311f2710063bd018a8c643d5d629b33f114c Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 2 Feb 2019 00:16:11 +0100 Subject: [PATCH] Fix log folder --- scripts/install | 6 +++++- scripts/restore | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b81cf59..e010efb 100755 --- a/scripts/install +++ b/scripts/install @@ -289,12 +289,16 @@ ynh_store_file_checksum "$final_path/config.ini" #================================================= # SPECIFIC SETUP #================================================= -# ... +# CREATE LOG FOLDER #================================================= mkdir -p "/var/log/$app" chown -R "$app":"$app" "/var/log/$app" +#================================================= +# MAKE SETUP +#================================================= + ( cd $final_path && $final_path/writefreely --init-db ) ( cd $final_path && $final_path/writefreely --gen-keys ) ( cd $final_path && $final_path/writefreely --create-admin $admin:$password ) diff --git a/scripts/restore b/scripts/restore index 33fa19a..d9c3c46 100755 --- a/scripts/restore +++ b/scripts/restore @@ -136,6 +136,13 @@ ynh_restore_file "/etc/logrotate.d/$app" #systemctl reload php5-fpm systemctl reload nginx +#================================================= +# CREATE LOG FOLDER +#================================================= + +mkdir -p "/var/log/$app" +chown -R "$app":"$app" "/var/log/$app" + #================================================= # START SERVICE #=================================================