Re-introduce sudo for read-only scripts

This commit is contained in:
Philipp Rintz 2022-12-20 19:51:12 +01:00 committed by GitHub
parent 332b484106
commit fe0da93ce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -22,4 +22,4 @@
# Exit when any command fails
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

View file

@ -16,4 +16,4 @@ set -e
# Use jc to output a JSON format with du command
cd /var/borgwarehouse
jc du -s *
sudo jc du -s *