From: Jacob Casper Date: Sun, 5 Apr 2020 19:00:05 +0000 (-0500) Subject: Add python venv init steps X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=7576a45852d74d69aeb36c06e6896b223c7fb61c;p=mercuryms.git Add python venv init steps --- diff --git a/README.md b/README.md index 9ae27a2..2aae787 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ This tool provides a way to text images to a Twilio webhook and store them on a - systemd - sqlite3 +- python (3.7+ is all that's tested) ## Usage 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/