provision.pl - handle skel directory for admin user

This commit is contained in:
gashapwn 2020-11-29 08:04:54 +00:00
parent 0cb0b4deb2
commit 34ccae79ef

View File

@ -51,6 +51,10 @@ chdir $REPO_DIR;
system("mkdir ./skel/public_html/cgi"); system("mkdir ./skel/public_html/cgi");
system("cp -r ./skel/* /etc/skel/"); 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");
# Setup the virtual environment # Setup the virtual environment
system("pkg_add python3"); system("pkg_add python3");
printf("generating virutal enviornment...\n"); printf("generating virutal enviornment...\n");