diff --git a/scripts/install b/scripts/install index 68d7d70..64dc627 100644 --- a/scripts/install +++ b/scripts/install @@ -168,11 +168,15 @@ ynh_system_user_create "$app" "$final_path" #================================================= # SPECIFIC SETUP #================================================= -# ... +# CREATE LOG FOLDER #================================================= -mkdir -p /var/log/$app -chown -R $app:$app /var/log/$app +mkdir -p "/var/log/$app" +chown -R "$app":"$app" "/var/log/$app" + +#================================================= +# MAKE SETUP +#================================================= chown -R "$app":"$app" "$final_path" pushd $final_path @@ -318,4 +322,4 @@ systemctl reload nginx # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app --line_match="Started Distbin Service" --log_path=/var/log/syslog +ynh_systemd_action --action=start --service_name=$app diff --git a/scripts/restore b/scripts/restore index 5dba7db..9f4e9a4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -131,6 +131,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 #=================================================