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