From 34ccae79efd789f8fa3028b2b14470925dccfaa6 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Sun, 29 Nov 2020 08:04:54 +0000 Subject: [PATCH] provision.pl - handle skel directory for admin user --- perl-script/provision.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl-script/provision.pl b/perl-script/provision.pl index 5d3b577..2c5f7d0 100644 --- a/perl-script/provision.pl +++ b/perl-script/provision.pl @@ -51,6 +51,10 @@ chdir $REPO_DIR; system("mkdir ./skel/public_html/cgi"); 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 system("pkg_add python3"); printf("generating virutal enviornment...\n");