maintenance.sh: create venv if it does not exist
This commit is contained in:
parent
1e9a637050
commit
47a977a069
1 changed files with 4 additions and 3 deletions
|
@ -4,9 +4,10 @@ set -Eeuo pipefail
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
update_venv() {
|
update_venv() {
|
||||||
if [ -d "venv" ]; then
|
if [ ! -d "venv" ]; then
|
||||||
venv/bin/pip install -r requirements.txt >/dev/null
|
python3 -m venv venv
|
||||||
fi
|
fi
|
||||||
|
venv/bin/pip install -r requirements.txt >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
update_apps_repo() {
|
update_apps_repo() {
|
||||||
|
@ -18,7 +19,7 @@ update_apps_repo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
update_apps_cache() {
|
update_apps_cache() {
|
||||||
./app_caches.py -d -l .apps -c .apps_cache -j20
|
venv/bin/python3 ./app_caches.py -d -l .apps -c .apps_cache -j20
|
||||||
}
|
}
|
||||||
|
|
||||||
git_pull_and_restart_services() {
|
git_pull_and_restart_services() {
|
||||||
|
|
Loading…
Reference in a new issue