Refactor scripts

This commit is contained in:
SebastianStork 2025-04-11 23:23:45 +02:00
parent e558859799
commit da7a7b7328
4 changed files with 18 additions and 14 deletions

View file

@ -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
"
'';
})
];