aboutsummaryrefslogtreecommitdiffstats
path: root/bin/srt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/srt')
-rwxr-xr-xbin/srt11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/srt b/bin/srt
index 87a506ae..06940ee8 100755
--- a/bin/srt
+++ b/bin/srt
@@ -110,8 +110,15 @@ stop_system()
}
verify_prereq() {
- # disable for now
- #return
+ # Quick check for Python3
+ if [ -z "$(which python3)" ] ; then
+ echo "ERROR: missing 'python3' host package"
+ return 2
+ fi
+ if [ -z "$(which sqlite3)" ] ; then
+ echo "ERROR: missing 'sqlite3' host package"
+ return 2
+ fi
# Verify Django version
reqfile=$(python3 -c "import os; print(os.path.realpath('$SRT_BASE_DIR/bin/srtool-requirements.txt'))")