X-Git-Url: https://git.jacobcasper.com/?p=mercuryms.git;a=blobdiff_plain;f=setup.sh;h=89f9be059dc88f6f10281b73fe37efc6db4ac3c8;hp=f1a34747ef6eea6717ff03c9c3efaffabf37eb0d;hb=HEAD;hpb=de99d6c28b6cdb8c72f79df91669598ded432a6d diff --git a/setup.sh b/setup.sh index f1a3474..89f9be0 100755 --- a/setup.sh +++ b/setup.sh @@ -7,3 +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/