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 #=================================================