diff --git a/conf/systemd.service b/conf/systemd.service index 13d5118..3f53475 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -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