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]
|
||||
WorkingDirectory=YNH_HOME
|
||||
Environment=NODE_ENV=production HOME=YNH_HOME KRESUS_URL_PREFIX=YNH_WWW_PATH
|
||||
ExecStart=/usr/bin/node bin/kresus.js
|
||||
Environment=NODE_ENV=production HOME=YNH_HOME
|
||||
ExecStart=/usr/local/bin/kresus
|
||||
Type=simple
|
||||
Restart=always
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
# Setup service
|
||||
systemd_service=../conf/kresus.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
|
||||
systemctl enable $app
|
||||
systemctl start $app
|
||||
|
|
Loading…
Add table
Reference in a new issue