1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/haste_ynh.git synced 2024-09-03 20:36:28 +02:00
This commit is contained in:
ericgaspar 2020-07-30 07:04:34 +02:00
parent 4c9215793d
commit a1a52fb17c
7 changed files with 5 additions and 24 deletions

View file

@ -1,6 +1,7 @@
{
"host": "127.0.0.1",
"port": __PORT__,
"keyLength": 10,

View file

@ -9,6 +9,8 @@ Group=__APP__
WorkingDirectory=__FINALPATH__
Environment="PATH=__ENV_PATH__"
ExecStart=__YNH_NPM__ start
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit
Restart=always
[Install]

View file

@ -52,7 +52,6 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
# BACKUP LOGROTATE
#=================================================
# FIXME Currently, the log is only redirected to syslog.
ynh_backup --src_path="/etc/logrotate.d/$app"
#=================================================

View file

@ -193,9 +193,7 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=1
if [ $is_public -eq 1 ]
then
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission "main" --add "visitors"
ynh_permission_update --permission "main" --add "visitors"
fi
#=================================================

View file

@ -61,7 +61,6 @@ ynh_remove_nginx_config
#=================================================
ynh_script_progression --message="Removing logrotate configuration..." --weight=1
# FIXME Currently, the log is only redirected to syslog.
ynh_remove_logrotate
#=================================================

View file

@ -85,15 +85,6 @@ systemctl enable $app.service
ynh_restore_file "/home/yunohost.app/$app"
#=================================================
# HANDLE LOG FILES AND RESTORE LOGROTATE
#=================================================
# FIXME Currently, the log is only redirected to syslog.
# mkdir -p /var/log/$app
# touch /var/log/$app/$app.log
# chown $app -R /var/log/$app
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================

View file

@ -94,7 +94,7 @@ fi
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2
# Create a dedicated nginx config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -190,15 +190,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================
# SETUP SSOWAT
#=================================================
# if [ $is_public -eq 1 ];
# then
# ynh_app_setting_set $app skipped_uris "/"
# fi
#=================================================
# RELOAD NGINX
#=================================================