From 30ff1dae9e86ba906e121b674d44631a87b60fba Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 29 Jun 2017 16:54:57 +0200 Subject: [PATCH] Update install --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index 4b8b9c9..4b7c89c 100644 --- a/scripts/install +++ b/scripts/install @@ -132,6 +132,14 @@ sudo_path npm install --production >> $install_log 2>&1 sudo_path node osjs build popd sudo yunohost firewall allow Both $port + +#================================================= +# Configure init script +#================================================= + +sudo cp ../conf/"$app".service /etc/systemd/system/ +sudo systemctl daemon-reload +sudo systemctl enable "$app".service sudo systemctl start "$app".service #=================================================