From 15c5850d1bb7165e5c304476b8cbe305e3f3a12d Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sun, 20 Dec 2020 18:08:17 +0100 Subject: [PATCH] Fix log file, Fix permissions --- conf/systemd.service | 4 ++-- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index c7db651..6009597 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -11,8 +11,8 @@ Environment=RAILS_ENV=production Environment="PORT=__PORT_WEB__" ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server ExecReload=/bin/kill -SIGUSR1 $MAINPID -StandardOutput=/var/log/__APP__/__APP__.log -StandardError=/var/log/__APP__/__APP__.log +StandardOutput=file:/var/log/__APP__/__APP__.log +StandardError=file:/var/log/__APP__/__APP__.log SyslogIdentifier=__APP__ Restart=always RestartSec=15 diff --git a/scripts/install b/scripts/install index d0cbdb4..04d93f4 100755 --- a/scripts/install +++ b/scripts/install @@ -218,8 +218,8 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=3 if [ $is_public -eq 1 ] then # Create the visitors permission if needed - if ! ynh_permission_exists --permission "visitors"; then - ynh_permission_create --permission "visitors" + if ! ynh_permission_exists --permission "main"; then + ynh_permission_create --permission "main" --allowed "visitors" fi fi diff --git a/scripts/upgrade b/scripts/upgrade index 0465549..e1aa878 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -247,8 +247,8 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --time --we if [ $is_public -eq 1 ] then # Create the visitors permission if needed - if ! ynh_permission_exists --permission "visitors"; then - ynh_permission_create --permission "visitors" + if ! ynh_permission_exists --permission "main"; then + ynh_permission_create --permission "main" --allowed "visitors" fi fi