1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Fix log file, Fix permissions

This commit is contained in:
Fabian Wilkens 2020-12-20 18:08:17 +01:00
parent 8bb1fb19e4
commit 15c5850d1b
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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