Browse Source

provision.pl - now provision.pl adds admin user to user_list.txt so they are on the default user list

tags/release-00
gashapwn 3 years ago
parent
commit
268913aba8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      perl-script/provision.pl

+ 3
- 0
perl-script/provision.pl View File

@@ -54,6 +54,7 @@ system("cp -r ./skel/* /etc/skel/");
# setup admin user
system("cp -r ./skel/* /home/$admin_un/");
system("chown -R $admin_un:$admin_un /home/$admin_un");
system("echo $admin_un >> ./user_list.txt");

# Setup the virtual environment
system("pkg_add python3");
@@ -94,3 +95,5 @@ system("pkg_add haproxy");
printf("configuring haproxy\n");
system("cp ./perl-script/conf/haproxy.cfg /etc/haproxy/haproxy.cfg");
system("rcctl start haproxy");

printf("dont forget to setup your ssh pub key at /home/$admin_un/.ssh/authorized_keys\n");

Loading…
Cancel
Save