Create skel directory for rke user to supply authorized_keys

This commit is contained in:
Gerald Pinder
2025-05-11 14:47:05 -04:00
parent 80853624a3
commit 6980214f02
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
if ! id -u rke &> /dev/null; then
echo "Creating user 'rke'"
# Create user 'rke' with home directory using useradd
useradd --system -m rke
useradd --system -m -k /usr/libexec/rke/skel/ rke
fi
# Add 'rke' to docker group