provision.pl - komm susser todd
This commit is contained in:
parent
b54c33a442
commit
d6cc9c5673
@ -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");
|
system("pkg_add python3 openssl rust py3-flask-0.12.3p2");
|
||||||
printf("generating virtual enviornment...\n");
|
printf("generating virtual enviornment...\n");
|
||||||
system("su $SVC_ACCT -c 'python3 -m venv venv'");
|
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("su $SVC_ACCT -c '. ./venv/bin/activate && pip3 install -r requirements.txt'");
|
||||||
|
|
||||||
system("cp ./perl-script/conf/lingyin.rc /etc/rc.d/lingyind");
|
system("cp ./perl-script/conf/lingyin.rc /etc/rc.d/lingyind");
|
||||||
|
Loading…
Reference in New Issue
Block a user