Adduser and cwd

This commit is contained in:
Antonio J. Delgado 2023-12-11 09:54:03 +02:00
parent 3d14eaaa8b
commit 3843cc7c19

View file

@ -488,6 +488,8 @@ class mastodon (
$_service_duplicates = @("EOT")
[Service]
Type=simple
User=${mastodon_user}
WorkingDirectory=${mastodon_home}/live
Environment='RAILS_ENV=production' 'PATH=${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
ExecStart=/opt/mastodon/live/bin/tootctl maintenance fix-duplicates