Consistent variable use in build scripts

This commit is contained in:
Christian Mäder 2019-02-06 12:30:08 +01:00
parent 1c42f14bf0
commit c7ab15f914
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
3 changed files with 30 additions and 3 deletions

View file

@ -1,6 +1,27 @@
#!/bin/bash
set -e
# inform about deprecation
depraction_warning() {
echo ""
echo ""
echo ""
echo "⚠️ WARNING ⚠️ WARNING ⚠️ WARNING ⚠️"
echo ""
echo "📣️ The docker images for Netbox have moved to 'netboxcommunity/netbox'."
echo ""
echo "❌ Your setup will not get any updates anymore."
echo "❌ Your setup will break after 2019."
echo ""
echo " Just rename 'ninech/netbox' to 'netboxcommunity/netbox' and your good again."
echo ""
echo ""
echo ""
}
depraction_warning
# wait shortly and then run db migrations (retry on error)
while ! ./manage.py migrate 2>&1; do
echo "⏳ Waiting on DB..."
@ -49,6 +70,8 @@ done
echo "✅ Initialisation is done."
depraction_warning
# launch whatever is passed by docker
# (i.e. the RUN instruction in the Dockerfile)
exec ${@}