mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Refactor scripts
This commit is contained in:
parent
e558859799
commit
da7a7b7328
4 changed files with 18 additions and 14 deletions
|
|
@ -26,9 +26,11 @@
|
|||
(pkgs.writeShellApplication {
|
||||
name = "hedgedoc-restore";
|
||||
text = ''
|
||||
sudo systemctl stop hedgedoc.service
|
||||
sudo restic-hedgedoc restore latest --target /
|
||||
sudo systemctl start hedgedoc.service
|
||||
sudo bash -c "
|
||||
systemctl stop hedgedoc.service
|
||||
restic-hedgedoc restore latest --target /
|
||||
systemctl start hedgedoc.service
|
||||
"
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue