Use arrays for systemd paths
This commit is contained in:
parent
c4588cf2b2
commit
02ac9115e4
2 changed files with 14 additions and 6 deletions
|
@ -30,8 +30,16 @@ systemd = {
|
|||
'EnvironmentFile': f"/etc/{app['name']}.env",
|
||||
'WorkingDirectory': f"/etc/{app['name']}",
|
||||
'RootDirectory': f"{undocker['app_dst']}",
|
||||
'ReadWritePaths': '+/etc/linkding',
|
||||
'BindPaths': f"{data_directories[0]}:/etc/linkding/data",
|
||||
'BindReadOnlyPaths': '/etc/resolv.conf /etc/hosts /proc',
|
||||
'ReadWritePaths': [
|
||||
'+/etc/linkding'
|
||||
],
|
||||
'BindPaths': [
|
||||
f"{data_directories[0]}:/etc/linkding/data"
|
||||
],
|
||||
'BindReadOnlyPaths': [
|
||||
'/etc/resolv.conf',
|
||||
'/etc/hosts',
|
||||
'/proc'
|
||||
],
|
||||
'ExecStart': '/etc/linkding/bootstrap.sh',
|
||||
}
|
|
@ -9,9 +9,9 @@ Group={{ host.data.systemd['Group'] }}
|
|||
EnvironmentFile={{ host.data.systemd['EnvironmentFile'] }}
|
||||
WorkingDirectory={{ host.data.systemd['WorkingDirectory'] }}
|
||||
RootDirectory={{ host.data.systemd['RootDirectory'] }}
|
||||
ReadWritePaths={{ host.data.systemd['ReadWritePaths'] }}
|
||||
BindPaths={{ host.data.systemd['BindPaths'] }}
|
||||
BindReadOnlyPaths={{ host.data.systemd['BindReadOnlyPaths'] }}
|
||||
ReadWritePaths={{ host.data.systemd['ReadWritePaths'] | join(' ') }}
|
||||
BindPaths={{ host.data.systemd['BindPaths'] | join(' ') }}
|
||||
BindReadOnlyPaths={{ host.data.systemd['BindReadOnlyPaths'] | join(' ') }}
|
||||
ExecStart={{ host.data.systemd['ExecStart'] }}
|
||||
KillSignal=SIGQUIT
|
||||
Restart=on-failure
|
||||
|
|
Reference in a new issue