Perform git pull before push for the system repo

This commit is contained in:
coolneng 2022-06-19 09:29:07 +02:00
parent ce0bd4bc05
commit 552e3bec1a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,10 @@ in {
systemd.user.services.zion-push = {
description = "Push zion changes to git";
path = with pkgs; [ git ];
script = "${pkgs.git}/bin/git -C /home/coolneng/system push";
script = ''
${pkgs.git}/bin/git -C /home/coolneng/system pull
${pkgs.git}/bin/git -C /home/coolneng/system push
'';
serviceConfig.Type = "oneshot";
startAt = "07:00:00";
after = [ "network-online.target" ];