chore: add a task to create a tarball of dot files for devuser

This commit is contained in:
yeti
2025-05-16 09:30:05 +01:00
parent dfdf4fe738
commit a565ed4c33
2 changed files with 16 additions and 0 deletions

9
create-home-tarball.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
if [ "$(basename "$(pwd -P)")" != "workspaces" ]; then
echo "Error: this script must be run from a directory named 'workspaces', not '$(basename "$(pwd -P)")'" >&2
exit 1
fi
tar -czf home.tar.gz --owner root --group secproc --xform "s,$PWD,/home/devuser," .config .local .ssh start.sh