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