diff --git a/ct/tandoor.sh b/ct/tandoor.sh index 4a1ce1739..451ed639e 100644 --- a/ct/tandoor.sh +++ b/ct/tandoor.sh @@ -33,6 +33,10 @@ function update_script() { exit 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 msg_info "Stopping Service" systemctl stop tandoor diff --git a/install/tandoor-install.sh b/install/tandoor-install.sh index c8f572297..b010a735e 100644 --- a/install/tandoor-install.sh +++ b/install/tandoor-install.sh @@ -47,6 +47,7 @@ $STD yarn install $STD yarn build cat </opt/tandoor/.env SECRET_KEY=$SECRET_KEY +ALLOWED_HOSTS=$LOCAL_IP TZ=Europe/Berlin DB_ENGINE=django.db.backends.postgresql