From 9e84828e3eb71544143101f79c20c6cd2db15614 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 5 Jun 2025 14:00:04 +0200 Subject: [PATCH] fixes --- install/adventurelog-install.sh | 11 ++++++----- install/babybuddy-install.sh | 2 +- install/netbox-install.sh | 2 +- install/paperless-ngx-install.sh | 6 +++--- install/tandoor-install.sh | 6 +++--- install/wger-install.sh | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index ade69d13f..6935a3a58 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -82,9 +82,9 @@ $STD uv venv /opt/adventurelog/backend/server/.venv $STD /opt/adventurelog/backend/server/.venv/bin/python -m ensurepip --upgrade $STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install --upgrade pip $STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install -r requirements.txt -$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage.py collectstatic --noinput -$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage.py migrate -$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage.py download-countries +$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage collectstatic --noinput +$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage migrate +$STD /opt/adventurelog/backend/server/.venv/bin/python -m manage download-countries cat </opt/adventurelog/frontend/.env PUBLIC_SERVER_URL=http://$LOCAL_IP:8000 BODY_SIZE_LIMIT=Infinity @@ -97,7 +97,8 @@ echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt" msg_ok "Installed AdventureLog" msg_info "Setting up Django Admin" -$STD /opt/adventurelog/backend/server/.venv/bin/python -m /opt/adventurelog/backend/server/manage.py shell < " prompt @@ -135,7 +135,7 @@ fi msg_info "Setting up admin Paperless-ngx User & Password" ## From https://github.com/linuxserver/docker-paperless-ngx/blob/main/root/etc/cont-init.d/99-migrations -cat <>~/tandoor.creds echo -e "Tandoor Database User: \e[32m$DB_USER\e[0m" >>~/tandoor.creds echo -e "Tandoor Database Password: \e[32m$DB_PASS\e[0m" >>~/tandoor.creds export $(cat /opt/tandoor/.env | grep "^[^#]" | xargs) -$STD /opt/tandoor/.venv/bin/python -m manage.py migrate -$STD /opt/tandoor/.venv/bin/python -m manage.py collectstatic --no-input -$STD /opt/tandoor/.venv/bin/python -m python manage.py collectstatic_js_reverse +$STD /opt/tandoor/.venv/bin/python -m manage migrate +$STD /opt/tandoor/.venv/bin/python -m manage collectstatic --no-input +$STD /opt/tandoor/.venv/bin/python -m python manage collectstatic_js_reverse msg_ok "Set up PostgreSQL Database" msg_info "Creating Services" diff --git a/install/wger-install.sh b/install/wger-install.sh index 76b398b26..edcb48c07 100644 --- a/install/wger-install.sh +++ b/install/wger-install.sh @@ -48,7 +48,7 @@ sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py sed -i "/MEDIA_ROOT = '\/home\/wger\/media'/a STATIC_ROOT = '/home/wger/static'" /home/wger/src/settings.py $STD /home/wger/.venv/bin/wger bootstrap cd /home/wger/src/ -$STD /home/wger/.venv/bin/python -m manage.py collectstatic +$STD /home/wger/.venv/bin/python -m manage collectstatic echo "${RELEASE}" >/opt/wger_version.txt msg_ok "Finished setting up wger"