Add python venv init steps
authorJacob Casper <dev@jacobcasper.com>
Sun, 5 Apr 2020 19:00:05 +0000 (14:00 -0500)
committerJacob Casper <dev@jacobcasper.com>
Sun, 5 Apr 2020 19:00:05 +0000 (14:00 -0500)
README.md
setup.sh

index 9ae27a2321319a787b11ec8840bc528e969f7aea..2aae78784e0bde165b68a9a411cb6bf67bcd1a43 100644 (file)
--- 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
 
index a950de87caf07cd1713c356a3b7212c4294e6b2d..89f9be059dc88f6f10281b73fe37efc6db4ac3c8 100755 (executable)
--- 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/