BinaryONe commited on
Commit
a08fbe5
·
1 Parent(s): ab00e2c
Files changed (1) hide show
  1. start.sh +2 -1
start.sh CHANGED
@@ -3,7 +3,7 @@
3
  # Function to print the current hostname and user details
4
  print_host_details() {
5
  echo "* The hostname of this container is: $(cat /etc/hostname)"
6
- echo "* The host of this container is: $(cat /etc/hosts)"
7
  echo "* ID of the user running the script: $(id -u) * Group: $(id -g) * Status of Admin: $(id admin 2>/dev/null || echo 'Admin user not found')"
8
  }
9
 
@@ -130,6 +130,7 @@ start_ssh_service
130
  #echo "password" | su - admin -c "whoami"
131
  #create_admin_user
132
  #change_account "admin" "password"
 
133
  fix_admin_permissions
134
  generate_admin_ssh_keys
135
  add_admin_authorized_keys
 
3
  # Function to print the current hostname and user details
4
  print_host_details() {
5
  echo "* The hostname of this container is: $(cat /etc/hostname)"
6
+ #echo "* The host of this container is: $(cat /etc/hosts)"
7
  echo "* ID of the user running the script: $(id -u) * Group: $(id -g) * Status of Admin: $(id admin 2>/dev/null || echo 'Admin user not found')"
8
  }
9
 
 
130
  #echo "password" | su - admin -c "whoami"
131
  #create_admin_user
132
  #change_account "admin" "password"
133
+ netstat -tuln
134
  fix_admin_permissions
135
  generate_admin_ssh_keys
136
  add_admin_authorized_keys