switch from ExexReload to systemd.services.<name>.reload
This commit is contained in:
parent
4530608c99
commit
d413dc071e
1 changed files with 5 additions and 5 deletions
|
@ -45,11 +45,6 @@
|
|||
};
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.yate}/bin/yate -c /etc/yate -e /etc/yate/share";
|
||||
ExecReload= ''
|
||||
${pkgs.git}/bin/git config --global --add safe.directory /var/lib/yate
|
||||
/usr/bin/env GIT_SSH_COMMAND=\\"${pkgs.openssh}/bin/ssh -i /run/secrets/git_clone_key\\" ${pkgs.git}/bin/git -C /var/lib/yate fetch --all
|
||||
/usr/bin/env GIT_SSH_COMMAND=\\"${pkgs.openssh}/bin/ssh -i /run/secrets/git_clone_key\\" ${pkgs.git}/bin/git -C /var/lib/yate reset --hard origin/main
|
||||
'';
|
||||
Type="simple";
|
||||
Restart="always";
|
||||
User="yate";
|
||||
|
@ -71,5 +66,10 @@
|
|||
${pkgs.git}/bin/git -C /var/lib/yate config --add safe.directory \"/var/lib/yate\"
|
||||
fi
|
||||
'';
|
||||
reload= ''
|
||||
${pkgs.git}/bin/git config --global --add safe.directory /var/lib/yate
|
||||
/usr/bin/env GIT_SSH_COMMAND=\\"${pkgs.openssh}/bin/ssh -i /run/secrets/git_clone_key\\" ${pkgs.git}/bin/git -C /var/lib/yate fetch --all
|
||||
/usr/bin/env GIT_SSH_COMMAND=\\"${pkgs.openssh}/bin/ssh -i /run/secrets/git_clone_key\\" ${pkgs.git}/bin/git -C /var/lib/yate reset --hard origin/main
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue