From 067441e753de595910212c7980dc78453a61251c Mon Sep 17 00:00:00 2001 From: gashapwn Date: Sun, 29 Nov 2020 07:44:02 +0000 Subject: [PATCH] added logic to copy home skeleton --- .gitignore | 4 +--- perl-script/provision.pl | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9951c7e..2c55069 100644 --- a/.gitignore +++ b/.gitignore @@ -2,8 +2,6 @@ venv/* test/* *~ test_*.txt -*/p0.pl -*/p1.pl -*/p2.pl +*/p[0-9].pl notes.txt user_list.txt diff --git a/perl-script/provision.pl b/perl-script/provision.pl index 3bb83dd..6d90c63 100644 --- a/perl-script/provision.pl +++ b/perl-script/provision.pl @@ -47,6 +47,9 @@ chdir $admin_home_dir; system("su $admin_un -c 'git clone $GIT_REPO'"); chdir $REPO_DIR; +# Copy the skel directory +system("cp -r ./skel/* /etc/skel/"); + # Setup the virtual environment system("pkg_add python3"); printf("generating virutal enviornment...\n");