forked from Fediversity/Fediversity
fix: run manage
in service directory
for everything else it will error on CHDIR, even if $PWD has the right owner and permissions.
This commit is contained in:
parent
98c4490b4e
commit
8f0bcc35f0
1 changed files with 1 additions and 1 deletions
|
@ -58,13 +58,13 @@ let
|
|||
text =
|
||||
''
|
||||
systemd-run --pty \
|
||||
--same-dir \
|
||||
--wait \
|
||||
--collect \
|
||||
--service-type=exec \
|
||||
--unit "manage-${name}.service" \
|
||||
--property "User=${name}" \
|
||||
--property "Group=${name}" \
|
||||
--property "WorkingDirectory=/var/lib/${name}" \
|
||||
--property "Environment=DATABASE_URL=${database-url} USER_SETTINGS_FILE=${configFile}" \
|
||||
''
|
||||
+ optionalString (credentials != [ ]) (
|
||||
|
|
Loading…
Add table
Reference in a new issue