From 1f2ed04a7c33c51e56cc2c5081209c521c1ef281 Mon Sep 17 00:00:00 2001 From: Yalh Date: Wed, 30 Jan 2019 03:28:38 +0100 Subject: [PATCH] Fix install + CRON --- scripts/install | 12 ++++++------ scripts/restore | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index c58fab5..c61520b 100644 --- a/scripts/install +++ b/scripts/install @@ -174,10 +174,10 @@ ynh_system_user_create $app pushd $final_path ynh_use_nodejs -npm install graphql@^0.13.1 -npm install acorn@^6.0.0 -npm install babel-core@>=6.0.20 -npm install eslint@>=5.0.0 +npm install "graphql@^0.13.1" +npm install "acorn@^6.0.0" +npm install "babel-core@>=6.0.20" +npm install "eslint@>=5.0.0" npm install npm audit fix npm run build @@ -299,7 +299,7 @@ ynh_use_logrotate #yunohost service add $app --log "/var/log/$app/$app.log" # if using yunohost version 3.2 or more in the 'manifest.json', a description can be added -#yunohost service add $app --description "$app daemon for XXX" --log "/var/log/$app/$app.log" +yunohost service add $app --description "$app daemon for Wiki.js" --log "/var/log/$app/$app.log" #================================================= # SETUP SSOWAT @@ -315,5 +315,5 @@ fi #================================================= # RELOAD NGINX #================================================= - +systemctl start $app systemctl reload nginx diff --git a/scripts/restore b/scripts/restore index 0d2a8f0..cf0c8dd 100644 --- a/scripts/restore +++ b/scripts/restore @@ -105,7 +105,7 @@ systemctl enable $app.service # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -#yunohost service add $app --log "/var/log/$app/$app.log" +yunohost service add $app --description "$app daemon for Wiki.js" --log "/var/log/$app/$app.log" #================================================= # RESTORE THE CRON FILE