provision.pl - adjusted su commands to use global variables instead of hardcoded name
This commit is contained in:
parent
606921238d
commit
80738fe003
@ -42,13 +42,14 @@ system("echo 'permit $admin_un' > /etc/doas.conf");
|
|||||||
|
|
||||||
# install git
|
# install git
|
||||||
system("pkg_add git");
|
system("pkg_add git");
|
||||||
system("su gashapwn -c 'git clone $GIT_REPO'");
|
|
||||||
chdir $admin_home_dir;
|
chdir $admin_home_dir;
|
||||||
|
# clone repo
|
||||||
|
system("su $admin_un -c 'git clone $GIT_REPO'");
|
||||||
chdir $REPO_DIR;
|
chdir $REPO_DIR;
|
||||||
|
|
||||||
# Setup the virtual environment
|
# Setup the virtual environment
|
||||||
system("pkg_add python3");
|
system("pkg_add python3");
|
||||||
system("su gashapwn -c 'python3 -m venv venv'");
|
system("su $admin_un -c 'python3 -m venv venv'");
|
||||||
system("su gashapwn -c '. ./venv/bin/activate && pip3 install -r ");
|
system("su $admin_un -c '. ./venv/bin/activate && pip3 install -r ");
|
||||||
|
|
||||||
system("pkg_add p5-JSON");
|
system("pkg_add p5-JSON");
|
||||||
|
Loading…
Reference in New Issue
Block a user