This commit is contained in:
Slaviša Arežina
2026-03-28 15:18:10 +01:00
committed by GitHub
parent 1085aa5cf6
commit 2f3d393726
2 changed files with 5 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ function update_script() {
exit exit
fi fi
if ! grep -q "^ALLOWED_HOSTS=" /opt/tandoor/.env; then
echo "ALLOWED_HOSTS=${LOCAL_IP}" >>/opt/tandoor/.env
fi
if check_for_gh_release "tandoor" "TandoorRecipes/recipes"; then if check_for_gh_release "tandoor" "TandoorRecipes/recipes"; then
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop tandoor systemctl stop tandoor

View File

@@ -47,6 +47,7 @@ $STD yarn install
$STD yarn build $STD yarn build
cat <<EOF >/opt/tandoor/.env cat <<EOF >/opt/tandoor/.env
SECRET_KEY=$SECRET_KEY SECRET_KEY=$SECRET_KEY
ALLOWED_HOSTS=$LOCAL_IP
TZ=Europe/Berlin TZ=Europe/Berlin
DB_ENGINE=django.db.backends.postgresql DB_ENGINE=django.db.backends.postgresql