privateone commited on
Commit
3db2a68
·
verified ·
1 Parent(s): f1816ab

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +1 -1
start.sh CHANGED
@@ -38,7 +38,7 @@ start_ssh_service() {
38
  # Function to create 'admin' user if missing
39
  create_admin_user() {
40
  echo "* Creating 'admin' user *"
41
- useradd -m /home/admin || { echo "Failed to create admin user"; exit 1; }
42
  echo "admin:password" | chpasswd || { echo "Failed to set admin password"; exit 1; }
43
  #echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers || { echo "Failed to update sudoers"; exit 1; }
44
  }
 
38
  # Function to create 'admin' user if missing
39
  create_admin_user() {
40
  echo "* Creating 'admin' user *"
41
+ useradd -m admin || { echo "Failed to create admin user"; exit 1; }
42
  echo "admin:password" | chpasswd || { echo "Failed to set admin password"; exit 1; }
43
  #echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers || { echo "Failed to update sudoers"; exit 1; }
44
  }