Use dict for data_directories
This commit is contained in:
parent
02ac9115e4
commit
33098de98a
2 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ server.user(
|
|||
present=True,
|
||||
)
|
||||
|
||||
for directory in host.data.data_directories:
|
||||
for directory in host.data.data_directories.keys():
|
||||
files.directory(
|
||||
name=f'Make required directory {directory}',
|
||||
path=directory,
|
||||
|
|
|
@ -19,9 +19,9 @@ unix_account = {
|
|||
'shell': '/bin/false',
|
||||
}
|
||||
|
||||
data_directories = [
|
||||
f"{unix_account['home']}/data"
|
||||
]
|
||||
data_directories = {
|
||||
f"{unix_account['home']}/data": '/etc/linkding/data'
|
||||
}
|
||||
|
||||
systemd = {
|
||||
'Description': app['name'],
|
||||
|
@ -34,7 +34,7 @@ systemd = {
|
|||
'+/etc/linkding'
|
||||
],
|
||||
'BindPaths': [
|
||||
f"{data_directories[0]}:/etc/linkding/data"
|
||||
f"{list(data_directories.items())[0][0]}:{list(data_directories.items())[0][1]}"
|
||||
],
|
||||
'BindReadOnlyPaths': [
|
||||
'/etc/resolv.conf',
|
||||
|
|
Reference in a new issue