mirror of
https://github.com/YunoHost-Apps/kresus_ynh.git
synced 2024-09-03 19:36:10 +02:00
Update service
This commit is contained in:
parent
4795438383
commit
77a163fbb8
2 changed files with 2 additions and 3 deletions
|
@ -4,8 +4,8 @@ After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=YNH_HOME
|
WorkingDirectory=YNH_HOME
|
||||||
Environment=NODE_ENV=production HOME=YNH_HOME KRESUS_URL_PREFIX=YNH_WWW_PATH
|
Environment=NODE_ENV=production HOME=YNH_HOME
|
||||||
ExecStart=/usr/bin/node bin/kresus.js
|
ExecStart=/usr/local/bin/kresus
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
# Setup service
|
# Setup service
|
||||||
systemd_service=../conf/kresus.service
|
systemd_service=../conf/kresus.service
|
||||||
sed -i "s@YNH_HOME@$src_path@g" $systemd_service
|
sed -i "s@YNH_HOME@$src_path@g" $systemd_service
|
||||||
sed -i "s@YNH_WWW_PATH@$path@g" $systemd_service
|
|
||||||
sudo cp $systemd_service /etc/systemd/system/$app.service
|
sudo cp $systemd_service /etc/systemd/system/$app.service
|
||||||
systemctl enable $app
|
systemctl enable $app
|
||||||
systemctl start $app
|
systemctl start $app
|
||||||
|
|
Loading…
Add table
Reference in a new issue