Fix: Fix: SC2035 on getStorageUsed.sh

This commit is contained in:
York-Simon Johannsen 2023-06-19 12:00:11 +02:00
parent 81b4ed929f
commit 72b854e8d9
No known key found for this signature in database
GPG key ID: 006F8812A4B527D9
2 changed files with 2 additions and 3 deletions

View file

@ -6,5 +6,4 @@ borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/chmod -R 750 /var/borgwarehouse/[[\:x
borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/chown -R [[\:xdigit\:]]*\:borgwarehouse /var/borgwarehouse/[[\:xdigit\:]]*
borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/tee /var/borgwarehouse/[[\:xdigit\:]]*/.ssh/authorized_keys
borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/sed -ri s|*|g /var/borgwarehouse/[[\:xdigit\:]]*/.ssh/authorized_keys
borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/du -s [[\:xdigit\:]]*
borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/du -s -- [[\:xdigit\:]]*

View file

@ -16,4 +16,4 @@ set -e
# Use jc to output a JSON format with du command
cd /var/borgwarehouse
sudo /usr/bin/du -s ./* | sed 's/\.\///' | jc --du
sudo /usr/bin/du -s -- * | jc --du