mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-04 15:02:48 +02:00
Re-introduce sudo for read-only scripts
This commit is contained in:
parent
332b484106
commit
fe0da93ce5
|
@ -22,4 +22,4 @@
|
||||||
# Exit when any command fails
|
# Exit when any command fails
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
stat -c {\"user\":\"%U\",\"lastSave\":%Y\} /var/borgwarehouse/*/repos/*/integrity* | jq -s
|
sudo stat -c {\"user\":\"%U\",\"lastSave\":%Y\} /var/borgwarehouse/*/repos/*/integrity* | jq -s
|
||||||
|
|
|
@ -16,4 +16,4 @@ set -e
|
||||||
|
|
||||||
# Use jc to output a JSON format with du command
|
# Use jc to output a JSON format with du command
|
||||||
cd /var/borgwarehouse
|
cd /var/borgwarehouse
|
||||||
jc du -s *
|
sudo jc du -s *
|
||||||
|
|
Loading…
Reference in a new issue