From d6cc9c5673a723da42a92119e27c3fbf719fb558 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Tue, 2 Mar 2021 19:31:29 +0000 Subject: [PATCH] provision.pl - komm susser todd --- perl-script/provision.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-script/provision.pl b/perl-script/provision.pl index 1cdaca6..7fc7454 100644 --- a/perl-script/provision.pl +++ b/perl-script/provision.pl @@ -126,7 +126,7 @@ if( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:\n]+):[^:]+:[0- system("pkg_add python3 openssl rust py3-flask-0.12.3p2"); printf("generating virtual enviornment...\n"); system("su $SVC_ACCT -c 'python3 -m venv venv'"); -system("su $SVC_ACCT -c 'python3 -m pip install --upgrade pip'"); +system("su $SVC_ACCT -c '. ./venv/bin/activate && python3 -m pip install --upgrade pip'"); system("su $SVC_ACCT -c '. ./venv/bin/activate && pip3 install -r requirements.txt'"); system("cp ./perl-script/conf/lingyin.rc /etc/rc.d/lingyind");