Merge pull request #26 from Ravinou/25-improve-ubuntu-server-compatibility

25 improve ubuntu server compatibility
This commit is contained in:
Ravinou 2023-03-02 17:37:30 +01:00 committed by GitHub
commit bcaca7db89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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\:]]*

View file

@ -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