File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ metadata:
55data :
66 .bashrc : |
77 # ~/.bashrc for dev user
8+ export PATH="/home/dev/bin:$PATH"
89 export PYTHONUSERBASE="$HOME/.local"
910
1011 # Colors
1819 PS1='\u@\h:\w\$ '
1920
2021 # activate venv
21- source ~/venv/bin/activate
22+ source ~/venv/bin/activate
23+
Original file line number Diff line number Diff line change @@ -69,13 +69,21 @@ data:
6969 echo "WARNING: Could not check port usage (no ss/netstat found)."
7070 fi
7171
72+ # create user python virtual environment
7273 VENV_DIR="/home/dev/venv"
7374 if [ ! -d "$VENV_DIR" ]; then
7475 echo "Creating virtual environment in $VENV_DIR"
7576 python3 -m venv "$VENV_DIR"
7677 fi
7778 source "$VENV_DIR/bin/activate"
7879
80+ # create user bin directory
81+ BIN_DIR="/home/dev/bin"
82+ if [ ! -d "$BIN_DIR" ]; then
83+ echo "Creating user bin directory at $BIN_DIR"
84+ mkdir -p "$BIN_DIR"
85+ fi
86+
7987 echo "Starting SSH service on port $PORT..."
8088 exec /usr/sbin/sshd -D -f /etc/ssh/sshd_config \
8189 -o Port=$PORT \
You can’t perform that action at this time.
0 commit comments