BinaryONe commited on
Commit
1fe1ff3
·
1 Parent(s): 37ea54a
Files changed (1) hide show
  1. start.sh +1 -3
start.sh CHANGED
@@ -98,9 +98,7 @@ change_account() {
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
 
 
98
 
99
  if id -u "$username" >/dev/null 2>&1; then
100
  echo "* Trying Switching to user: $username *"
101
+ echo "$password" | su - "$username" -c 'echo "* Now running as: $(whoami) *"'
 
 
102
  echo "$password" | su -l "$username"
103
  echo "* Now running as 2: $(whoami) *"
104