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:
parent
8bb1fb19e4
commit
15c5850d1b
3 changed files with 6 additions and 6 deletions
|
@ -11,8 +11,8 @@ Environment=RAILS_ENV=production
|
||||||
Environment="PORT=__PORT_WEB__"
|
Environment="PORT=__PORT_WEB__"
|
||||||
ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server
|
ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server
|
||||||
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||||
StandardOutput=/var/log/__APP__/__APP__.log
|
StandardOutput=file:/var/log/__APP__/__APP__.log
|
||||||
StandardError=/var/log/__APP__/__APP__.log
|
StandardError=file:/var/log/__APP__/__APP__.log
|
||||||
SyslogIdentifier=__APP__
|
SyslogIdentifier=__APP__
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=15
|
RestartSec=15
|
||||||
|
|
|
@ -218,8 +218,8 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=3
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
# Create the visitors permission if needed
|
# Create the visitors permission if needed
|
||||||
if ! ynh_permission_exists --permission "visitors"; then
|
if ! ynh_permission_exists --permission "main"; then
|
||||||
ynh_permission_create --permission "visitors"
|
ynh_permission_create --permission "main" --allowed "visitors"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -247,8 +247,8 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --time --we
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
# Create the visitors permission if needed
|
# Create the visitors permission if needed
|
||||||
if ! ynh_permission_exists --permission "visitors"; then
|
if ! ynh_permission_exists --permission "main"; then
|
||||||
ynh_permission_create --permission "visitors"
|
ynh_permission_create --permission "main" --allowed "visitors"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue