temp: disk audit workflow
This commit is contained in:
1 parent
6e340b6d6a
commit
bc5902a276
1 file changed
+17
@@ -0,0 +1,17 @@
|
||||
name: disk-audit
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: nixos:host
|
||||
steps:
|
||||
- name: filesystem audit
|
||||
run: |
|
||||
set +e
|
||||
echo "== whoami"; id
|
||||
echo "== /mnt/appdata"; ls -la /mnt/appdata 2>&1 | head -60
|
||||
echo "== stat gitea"; stat -c '%A %U:%G %n' /mnt/appdata/gitea 2>&1
|
||||
echo "== du appdata top-level"; du -xsh /mnt/appdata/* 2>/dev/null | sort -h
|
||||
echo "== du gitea top-level"; du -xsh /mnt/appdata/gitea/* 2>&1 | sort -h
|
||||
echo "== du gitea/data"; du -xsh /mnt/appdata/gitea/data/* 2>&1 | sort -h
|
||||
echo "== sudo check"; sudo -n true 2>&1; echo "sudo rc=$?"
|
||||
Reference in new issue
Block a user