1
1
Fork 0

empyrean: fix cron job

This commit is contained in:
Jaculabilis 2024-01-08 23:11:30 +00:00
parent 84fa63493f
commit c9242c0bea
1 changed files with 3 additions and 2 deletions

View File

@ -60,10 +60,10 @@ let
# Script for cron jobs that sends output to journalctl -t sync-pipeline
sibd-cron = prefix: src: dest: pkgs.writeShellScript "sibd-cron" ''
${systemd}/bin/systemd-cat -t sync-pipeline ${sibd}/bin/sort-images-by-date ${prefix} ${src} ${dest}
${pkgs.systemd}/bin/systemd-cat -t sync-pipeline ${sibd}/bin/sort-images-by-date ${prefix} ${src} ${dest}
'';
in {
environment.systemPackages = [ sort-images-by-date ];
environment.systemPackages = [ sibd ];
services.cron = {
enable = true;
@ -71,4 +71,5 @@ in {
"0 0 * * 1 tvb ${sibd-cron "nokia" "/home/tvb/phone-sync/DCIM" "/home/tvb/phone-sync/staging"}"
"0 0 * * 1 tvb ${sibd-cron "nokia" "/home/tvb/phone-sync/Pictures" "/home/tvb/phone-sync/staging"}"
];
};
}