mirror of
https://github.com/derfenix/photocatalog.git
synced 2026-03-11 11:52:57 +03:00
Add overwrite option to systemd service in flake
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
];
|
||||
preStart = if !sync.skipFullSync then (''
|
||||
mkdir -p ${sync.target}
|
||||
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${lib.mkIf sync.overwrite "-overwrite"}
|
||||
photocatalog -source ${sync.source} -target ${sync.target} -mode ${sync.mode} ${if sync.overwrite then "-overwrite" else ""}
|
||||
'') else null;
|
||||
script = "photocatalog -source ${sync.source} -target ${sync.target} -skip-full-sync -watch -mode ${sync.mode}" ++ lib.mkIf sync.overwrite "-overwrite";
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user