Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix: IPv6 not starting #68

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/sh
set -e

# if ipv6 is unavailable, remove it from the wsgi config
ME=$(basename $0)
if [ ! -f "/proc/net/if_inet6" ]; then
echo "$ME: info: ipv6 not available"
sed -i 's/\[::\]//g' /usr/src/kitchenowl/wsgi.ini
fi

mkdir -p $STORAGE_PATH/upload
flask db upgrade
if [ "${SKIP_UPGRADE_DEFAULT_ITEMS}" != "true" ] && [ "${SKIP_UPGRADE_DEFAULT_ITEMS}" != "True" ]; then
Expand Down