diff --git a/docs/sudoers/10-borgwarehouse b/docs/sudoers/10-borgwarehouse index 6392618..7f76f0a 100644 --- a/docs/sudoers/10-borgwarehouse +++ b/docs/sudoers/10-borgwarehouse @@ -6,4 +6,5 @@ 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/jc du -s [[\:xdigit\:]]* +borgwarehouse ALL=(ALL) NOPASSWD: /usr/bin/du -s [[\:xdigit\:]]* + diff --git a/helpers/shells/getStorageUsed.sh b/helpers/shells/getStorageUsed.sh index 94634b4..4d58746 100755 --- a/helpers/shells/getStorageUsed.sh +++ b/helpers/shells/getStorageUsed.sh @@ -16,4 +16,4 @@ set -e # Use jc to output a JSON format with du command cd /var/borgwarehouse -sudo jc du -s * +sudo /usr/bin/du -s * | jc --du \ No newline at end of file