1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gemserv_ynh.git synced 2024-09-03 18:36:27 +02:00

Update systemd.service

This commit is contained in:
yalh76 2022-08-02 21:43:58 +02:00
parent 13834c0102
commit e6027436be

View file

@ -7,9 +7,9 @@ Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
ExecStartPre=+/bin/bash -c 'chown -R __APP__:__APP__ /etc/__APP__/'
ExecStartPre=+/bin/bash -c 'chmod 600 /etc/__APP__/config.toml'
ExecStartPre=+/bin/bash -c 'chmod 600 /etc/__APP__/config.d/server.toml.head'
ExecStartPre=-+/bin/bash -c 'chown -R __APP__:__APP__ /etc/__APP__/'
ExecStartPre=-+/bin/bash -c 'chmod 600 /etc/__APP__/config.toml'
ExecStartPre=-+/bin/bash -c 'chmod 600 /etc/__APP__/config.d/server.toml.head'
ExecStartPre=-/bin/bash -c 'cp /etc/__APP__/config.d/server.toml.head /etc/__APP__/config.toml'
ExecStartPre=-/bin/bash -c 'cat /etc/__APP__/config.d/*.toml >> /etc/__APP__/config.toml'
ExecStart=__FINALPATH__/live/__APP__ /etc/__APP__/config.toml