mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19:11:08 +01:00
fix(hledger-backup): run as root
This commit is contained in:
@@ -25,13 +25,13 @@
|
|||||||
script = ''
|
script = ''
|
||||||
${pkgs.git}/bin/git config user.name "hledger-web"
|
${pkgs.git}/bin/git config user.name "hledger-web"
|
||||||
${pkgs.git}/bin/git config user.email "hledger-web@${config.networking.hostName}"
|
${pkgs.git}/bin/git config user.email "hledger-web@${config.networking.hostName}"
|
||||||
${pkgs.git}/bin/git commit -am $(date -Ih)
|
${pkgs.git}/bin/git commit -am $(date -Ih) || :
|
||||||
${pkgs.git}/bin/git pull --rebase
|
${pkgs.git}/bin/git pull --rebase
|
||||||
${pkgs.git}/bin/git push
|
${pkgs.git}/bin/git push
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "hledger";
|
User = "root";
|
||||||
Group = "hledger";
|
Group = "root";
|
||||||
WorkingDirectory = config.services.hledger-web.stateDir;
|
WorkingDirectory = config.services.hledger-web.stateDir;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user