hotfix because the backup script kept starting and crashing everything before it had networkaccess or forgejo got closed

This commit is contained in:
Lyn 2024-02-20 22:15:27 +01:00
parent 180a04e787
commit c8ec74feca
2 changed files with 6 additions and 1 deletions

View file

@ -42,6 +42,9 @@ let
ExecStart = "${forgejo-borgbackup}/bin/forgejo-borgbackup"; ExecStart = "${forgejo-borgbackup}/bin/forgejo-borgbackup";
User = "root"; User = "root";
}; };
requires= ["mysql.service"];
after = ["forgejo.service" "mysql.service" "network-online.target"];
wants = ["network-online.target"];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };
@ -49,6 +52,7 @@ let
description = "Daily Borg Backup Timer"; description = "Daily Borg Backup Timer";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig = {
OnActiveSec = "30s";
OnCalendar = "daily"; OnCalendar = "daily";
Persistent = true; Persistent = true;
}; };

View file

@ -43,7 +43,8 @@
git git
vim vim
wget wget
curl curl
htop
]; ];