Spaces:
Paused
Paused
BinaryONe commited on
Commit ·
0ea508c
1
Parent(s): e0b0924
Changes
Browse files
start.sh
CHANGED
|
@@ -97,10 +97,13 @@ change_account() {
|
|
| 97 |
local password=$2
|
| 98 |
|
| 99 |
if id -u "$username" >/dev/null 2>&1; then
|
| 100 |
-
echo "* Switching to user: $username *"
|
| 101 |
-
echo "$password" | su -l "$username"
|
| 102 |
-
echo "* Now running as: $(whoami) *"
|
| 103 |
EOF
|
|
|
|
|
|
|
|
|
|
| 104 |
else
|
| 105 |
echo "User $username does not exist"
|
| 106 |
fi
|
|
|
|
| 97 |
local password=$2
|
| 98 |
|
| 99 |
if id -u "$username" >/dev/null 2>&1; then
|
| 100 |
+
echo "* Trying Switching to user: $username *"
|
| 101 |
+
echo "$password" | su -l "$username" <<'EOF'
|
| 102 |
+
echo "* Now running as 1: $(whoami) *"
|
| 103 |
EOF
|
| 104 |
+
echo "$password" | su -l "$username"
|
| 105 |
+
echo "* Now running as 2: $(whoami) *"
|
| 106 |
+
|
| 107 |
else
|
| 108 |
echo "User $username does not exist"
|
| 109 |
fi
|