From 890d41b9d0a8ff2d9cc6600a726fede32edef3b9 Mon Sep 17 00:00:00 2001 From: Stypox Date: Fri, 1 Aug 2025 23:33:35 +0200 Subject: [PATCH] Changes to start_db.sh and install.sh --- install.sh | 2 +- start_db.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7ea469df..c6cd9d5f 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ set -e python3 -m venv .env source ./.env/bin/activate pip install -r src/requirements/production.txt -r src/requirements/dev.txt -pip install psycopg2 +pip install psycopg2 pylibmc sudo pacman -Sy librsvg ./start_db.sh db diff --git a/start_db.sh b/start_db.sh index 7a588491..3397af90 100755 --- a/start_db.sh +++ b/start_db.sh @@ -29,6 +29,10 @@ elif [[ $# == 1 ]] && [[ $1 == "run" ]]; then python manage.py processupdates python manage.py runserver popd +elif [[ $# > 0 ]] && [[ $1 == "manage" ]]; then + pushd src + python manage.py "${@:2}" + popd else - echo "Usage: $0 [stop|db|run]" + echo "Usage: $0 [stop|db|run|manage]" fi