Use service specific directories in templates instead of /home/%USER%

This commit is contained in:
phizev
2023-06-15 00:50:46 +02:00
parent 5d7debd65e
commit 41a095f58d
9 changed files with 12 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ WantedBy=multi-user.target
[Service]
Type=simple
User=%USER%
WorkingDirectory=/home/%USER%/moonraker-telegram-bot
WorkingDirectory=%TELEGRAM_BOT_DIR%
EnvironmentFile=%ENV_FILE%
ExecStart=%ENV%/bin/python $TELEGRAM_BOT_ARGS
Restart=always