Streamlined the entrypoint script.

This commit is contained in:
Ameer Hamza Khan committed 2025-12-25 20:24:42 +08:00
1 parent 6122e061a7
commit 17289aeac4
5 files changed
+97 -56

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Setup home directory for the current user
# Useful for attaching vscode with container
set -e
user_name=$(whoami)
user_home="/home/$user_name"
echo "Setting up home directory for user: $user_name"
sudo mkdir -p "$user_home"
sudo chown -R "$(id -u):$(id -g)" "$user_home"
cp -r /etc/skel/. "$user_home" 2>/dev/null || true
echo "Home directory setup completed: $user_home"