X-Git-Url: https://git.jacobcasper.com/?p=mercuryms.git;a=blobdiff_plain;f=setup.sh;fp=setup.sh;h=89f9be059dc88f6f10281b73fe37efc6db4ac3c8;hp=a950de87caf07cd1713c356a3b7212c4294e6b2d;hb=7576a45852d74d69aeb36c06e6896b223c7fb61c;hpb=cec87282131d1b3a103a59de66768066dcd675cc diff --git a/setup.sh b/setup.sh index a950de8..89f9be0 100755 --- a/setup.sh +++ b/setup.sh @@ -7,6 +7,10 @@ chown mercuryms:mercuryms /usr/share/mercuryms chmod 700 /usr/share/mercuryms sqlite3 /usr/share/mercuryms/mercuryms.sqlite "$(cat migrations/*)" chown mercuryms:mercuryms /usr/share/mercuryms/mercuryms.sqlite +python3 -m venv mercuryms . \ + && source bin/activate \ + && bin/pip install -r requirements.txt \ + && deactivate cp mercuryms.service /etc/systemd/system/ cp mercuryms-listen* /etc/systemd/system/ cp mercuryms-send* /etc/systemd/system/