From f284697cd42553dd42e6bb0378b3b33b2cced604 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Sat, 28 Nov 2020 22:06:51 +0000 Subject: [PATCH] provision.pl fixed venv chdir... again --- perl-script/provision.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-script/provision.pl b/perl-script/provision.pl index 4d44f57..ea44b96 100644 --- a/perl-script/provision.pl +++ b/perl-script/provision.pl @@ -13,7 +13,7 @@ use strict; # Nov 2020 my $GIT_REPO = 'https://git.lain.church/gashapwn/lyadmin.git'; - +my ($REPO_DIR) = $GIT_REPO =~ /\/([^\/]*)\.git$/; my $pwuid; my $admin_un; @@ -45,7 +45,7 @@ system("pkg_add git"); system("pkg_add python3"); chdir $admin_home_dir; system("su gashapwn -c 'git clone $GIT_REPO'"); -chdir $GIT_REPO; +chdir $REPO_DIR; system("su gashapwn -c 'python3 -m venv venv'"); # system("su gashapwn -c '. ./venv/bin/activate && pip3 install -r ");