From 7576a45852d74d69aeb36c06e6896b223c7fb61c Mon Sep 17 00:00:00 2001 From: Jacob Casper Date: Sun, 5 Apr 2020 14:00:05 -0500 Subject: [PATCH] Add python venv init steps --- README.md | 1 + setup.sh | 4 ++++ 2 files changed, 5 insertions(+) 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/ -- 2.20.1