Perform git pull before push for the system repo
This commit is contained in:
parent
ce0bd4bc05
commit
552e3bec1a
|
@ -88,7 +88,10 @@ in {
|
||||||
systemd.user.services.zion-push = {
|
systemd.user.services.zion-push = {
|
||||||
description = "Push zion changes to git";
|
description = "Push zion changes to git";
|
||||||
path = with pkgs; [ 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";
|
serviceConfig.Type = "oneshot";
|
||||||
startAt = "07:00:00";
|
startAt = "07:00:00";
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
|
|
Loading…
Reference in New Issue