Browse Source

provision.pl - i think Flask install is working again

master
gashapwn 1 year ago
parent
commit
51e5753902
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      perl-script/provision.pl
  2. +1
    -0
      requirements.txt

+ 2
- 1
perl-script/provision.pl View File

@@ -123,9 +123,10 @@ if( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:\n]+):[^:]+:[0-
}

# Setup the virtual environment
system("pkg_add python3 openssl rust py3-flask-0.12.3p2");
system("pkg_add python3 openssl rust");
printf("generating virtual enviornment...\n");
system("su $SVC_ACCT -c 'python3 -m venv venv'");
printf("running pip. can take up to 3 minutes due to slow compilation.\n");
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'");



+ 1
- 0
requirements.txt View File

@@ -1 +1,2 @@
Flask==1.1.2
sshpubkeys==3.1.0

Loading…
Cancel
Save