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 =
|
text =
|
||||||
''
|
''
|
||||||
systemd-run --pty \
|
systemd-run --pty \
|
||||||
--same-dir \
|
|
||||||
--wait \
|
--wait \
|
||||||
--collect \
|
--collect \
|
||||||
--service-type=exec \
|
--service-type=exec \
|
||||||
--unit "manage-${name}.service" \
|
--unit "manage-${name}.service" \
|
||||||
--property "User=${name}" \
|
--property "User=${name}" \
|
||||||
--property "Group=${name}" \
|
--property "Group=${name}" \
|
||||||
|
--property "WorkingDirectory=/var/lib/${name}" \
|
||||||
--property "Environment=DATABASE_URL=${database-url} USER_SETTINGS_FILE=${configFile}" \
|
--property "Environment=DATABASE_URL=${database-url} USER_SETTINGS_FILE=${configFile}" \
|
||||||
''
|
''
|
||||||
+ optionalString (credentials != [ ]) (
|
+ optionalString (credentials != [ ]) (
|
||||||
|
|
Loading…
Add table
Reference in a new issue