diff --git a/deploy.sh b/deploy.sh index 698d9985b..18e7d2c5a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export GIT_PAGER=cat diff --git a/dsmr_backend/management/commands/dsmrreader_lock_migrations.py b/dsmr_backend/management/commands/dsmrreader_lock_migrations.py index 4967be97f..ca831747b 100644 --- a/dsmr_backend/management/commands/dsmrreader_lock_migrations.py +++ b/dsmr_backend/management/commands/dsmrreader_lock_migrations.py @@ -15,7 +15,7 @@ def handle(self, **options): current_app = None latest_line = None - lock_content = "#!/bin/bash\n\n" + lock_content = "#!/usr/bin/env bash\n\n" lock_content += "# Dump for DSMR-reader v{}\n".format(settings.DSMRREADER_VERSION) for line in self._intercept_command_stdout('showmigrations', no_color=True).split("\n"): diff --git a/dsmrreader/provisioning/downgrade/v2.13.sh b/dsmrreader/provisioning/downgrade/v2.13.sh index d2c4e52b2..44f816e88 100644 --- a/dsmrreader/provisioning/downgrade/v2.13.sh +++ b/dsmrreader/provisioning/downgrade/v2.13.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v2.13 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v2.14.1.sh b/dsmrreader/provisioning/downgrade/v2.14.1.sh index 75eda4348..38101c4e7 100644 --- a/dsmrreader/provisioning/downgrade/v2.14.1.sh +++ b/dsmrreader/provisioning/downgrade/v2.14.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v2.14.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v2.14.sh b/dsmrreader/provisioning/downgrade/v2.14.sh index 519537fc2..0a98df98d 100644 --- a/dsmrreader/provisioning/downgrade/v2.14.sh +++ b/dsmrreader/provisioning/downgrade/v2.14.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v2.14 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v2.15.sh b/dsmrreader/provisioning/downgrade/v2.15.sh index bf8ba82ef..227181eb9 100644 --- a/dsmrreader/provisioning/downgrade/v2.15.sh +++ b/dsmrreader/provisioning/downgrade/v2.15.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v2.15 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.0.sh b/dsmrreader/provisioning/downgrade/v3.0.sh index a7fc35015..acfbfddb4 100644 --- a/dsmrreader/provisioning/downgrade/v3.0.sh +++ b/dsmrreader/provisioning/downgrade/v3.0.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.0 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.1.1.sh b/dsmrreader/provisioning/downgrade/v3.1.1.sh index c23eb1a77..e4ed5ed14 100644 --- a/dsmrreader/provisioning/downgrade/v3.1.1.sh +++ b/dsmrreader/provisioning/downgrade/v3.1.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.1.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.1.sh b/dsmrreader/provisioning/downgrade/v3.1.sh index 7317252f8..73210ee85 100644 --- a/dsmrreader/provisioning/downgrade/v3.1.sh +++ b/dsmrreader/provisioning/downgrade/v3.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.10.1.sh b/dsmrreader/provisioning/downgrade/v3.10.1.sh index fb03e04e4..f4cf08478 100644 --- a/dsmrreader/provisioning/downgrade/v3.10.1.sh +++ b/dsmrreader/provisioning/downgrade/v3.10.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.10.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.10.sh b/dsmrreader/provisioning/downgrade/v3.10.sh index 1e6d9fdec..0ce14d140 100644 --- a/dsmrreader/provisioning/downgrade/v3.10.sh +++ b/dsmrreader/provisioning/downgrade/v3.10.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.10 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.11.sh b/dsmrreader/provisioning/downgrade/v3.11.sh index d647884ce..c955eeea4 100644 --- a/dsmrreader/provisioning/downgrade/v3.11.sh +++ b/dsmrreader/provisioning/downgrade/v3.11.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.11 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.12.sh b/dsmrreader/provisioning/downgrade/v3.12.sh index b5c93f824..33dcc8025 100644 --- a/dsmrreader/provisioning/downgrade/v3.12.sh +++ b/dsmrreader/provisioning/downgrade/v3.12.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.12 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.2.sh b/dsmrreader/provisioning/downgrade/v3.2.sh index dd75da312..b8e030aeb 100644 --- a/dsmrreader/provisioning/downgrade/v3.2.sh +++ b/dsmrreader/provisioning/downgrade/v3.2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.2 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.3.sh b/dsmrreader/provisioning/downgrade/v3.3.sh index d6b35c659..3c46a41a0 100644 --- a/dsmrreader/provisioning/downgrade/v3.3.sh +++ b/dsmrreader/provisioning/downgrade/v3.3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.3 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.4.sh b/dsmrreader/provisioning/downgrade/v3.4.sh index e69c1cedd..58bb51ee7 100644 --- a/dsmrreader/provisioning/downgrade/v3.4.sh +++ b/dsmrreader/provisioning/downgrade/v3.4.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.4 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.5.sh b/dsmrreader/provisioning/downgrade/v3.5.sh index 2d970c055..6cfbe12ff 100644 --- a/dsmrreader/provisioning/downgrade/v3.5.sh +++ b/dsmrreader/provisioning/downgrade/v3.5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.5 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.6.sh b/dsmrreader/provisioning/downgrade/v3.6.sh index d71b0a610..f837505e5 100644 --- a/dsmrreader/provisioning/downgrade/v3.6.sh +++ b/dsmrreader/provisioning/downgrade/v3.6.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.6 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.7.sh b/dsmrreader/provisioning/downgrade/v3.7.sh index e0ee75f87..baca03e0f 100644 --- a/dsmrreader/provisioning/downgrade/v3.7.sh +++ b/dsmrreader/provisioning/downgrade/v3.7.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.7 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.8.sh b/dsmrreader/provisioning/downgrade/v3.8.sh index a2453e410..12b61bf40 100644 --- a/dsmrreader/provisioning/downgrade/v3.8.sh +++ b/dsmrreader/provisioning/downgrade/v3.8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.8 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.9.1.sh b/dsmrreader/provisioning/downgrade/v3.9.1.sh index 4784874ef..9b89b646f 100644 --- a/dsmrreader/provisioning/downgrade/v3.9.1.sh +++ b/dsmrreader/provisioning/downgrade/v3.9.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.9.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v3.9.sh b/dsmrreader/provisioning/downgrade/v3.9.sh index 24c2cab91..edeccd17a 100644 --- a/dsmrreader/provisioning/downgrade/v3.9.sh +++ b/dsmrreader/provisioning/downgrade/v3.9.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v3.9 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.0.sh b/dsmrreader/provisioning/downgrade/v4.0.sh index 79b1ef01a..ab7428b6c 100644 --- a/dsmrreader/provisioning/downgrade/v4.0.sh +++ b/dsmrreader/provisioning/downgrade/v4.0.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.0 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.1.1.sh b/dsmrreader/provisioning/downgrade/v4.1.1.sh index c83399ba1..c8fb74421 100644 --- a/dsmrreader/provisioning/downgrade/v4.1.1.sh +++ b/dsmrreader/provisioning/downgrade/v4.1.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.1.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.1.sh b/dsmrreader/provisioning/downgrade/v4.1.sh index d16ae7ffe..071047a1b 100644 --- a/dsmrreader/provisioning/downgrade/v4.1.sh +++ b/dsmrreader/provisioning/downgrade/v4.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.2.sh b/dsmrreader/provisioning/downgrade/v4.2.sh index c73ea9f92..7f30694f3 100644 --- a/dsmrreader/provisioning/downgrade/v4.2.sh +++ b/dsmrreader/provisioning/downgrade/v4.2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.2 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.3.1.sh b/dsmrreader/provisioning/downgrade/v4.3.1.sh index 22e1211de..c7b21d441 100644 --- a/dsmrreader/provisioning/downgrade/v4.3.1.sh +++ b/dsmrreader/provisioning/downgrade/v4.3.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.3.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.3.sh b/dsmrreader/provisioning/downgrade/v4.3.sh index 69fd49e6f..4e3aeb06d 100644 --- a/dsmrreader/provisioning/downgrade/v4.3.sh +++ b/dsmrreader/provisioning/downgrade/v4.3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.3 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.4.1.sh b/dsmrreader/provisioning/downgrade/v4.4.1.sh index bddac99a1..5bacd8a75 100644 --- a/dsmrreader/provisioning/downgrade/v4.4.1.sh +++ b/dsmrreader/provisioning/downgrade/v4.4.1.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.4.1 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.4.2.sh b/dsmrreader/provisioning/downgrade/v4.4.2.sh index e74854b1e..a0757cf51 100644 --- a/dsmrreader/provisioning/downgrade/v4.4.2.sh +++ b/dsmrreader/provisioning/downgrade/v4.4.2.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.4.2 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.4.3.sh b/dsmrreader/provisioning/downgrade/v4.4.3.sh index 099d59e24..89ca7c8fa 100644 --- a/dsmrreader/provisioning/downgrade/v4.4.3.sh +++ b/dsmrreader/provisioning/downgrade/v4.4.3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.4.3 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.4.sh b/dsmrreader/provisioning/downgrade/v4.4.sh index a3246b9b4..a540a2e62 100644 --- a/dsmrreader/provisioning/downgrade/v4.4.sh +++ b/dsmrreader/provisioning/downgrade/v4.4.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.4 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.5.sh b/dsmrreader/provisioning/downgrade/v4.5.sh index b654fd2a9..71598e007 100644 --- a/dsmrreader/provisioning/downgrade/v4.5.sh +++ b/dsmrreader/provisioning/downgrade/v4.5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.5 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/dsmrreader/provisioning/downgrade/v4.6.sh b/dsmrreader/provisioning/downgrade/v4.6.sh index 2e33acc08..c48d42359 100644 --- a/dsmrreader/provisioning/downgrade/v4.6.sh +++ b/dsmrreader/provisioning/downgrade/v4.6.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Dump for DSMR-reader v4.6 ./manage.py migrate dsmr_api 0003_create_api_user diff --git a/post-deploy.sh b/post-deploy.sh index ec38ce5a5..1b86a3fa7 100755 --- a/post-deploy.sh +++ b/post-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "" echo "" diff --git a/pre-deploy.sh b/pre-deploy.sh index 11c1ffae3..dbb13a3f8 100755 --- a/pre-deploy.sh +++ b/pre-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "" echo "" diff --git a/reload.sh b/reload.sh index 447d0f94a..77ac5e035 100755 --- a/reload.sh +++ b/reload.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Sending a HANGUP signal to Gunicorn's master process will gracefully reload its children. diff --git a/tools/apply-autopep8.sh b/tools/apply-autopep8.sh index e676567dc..a1ec4e2ec 100755 --- a/tools/apply-autopep8.sh +++ b/tools/apply-autopep8.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CURRENT_DIR=$(cd `dirname $0` && pwd) cd $CURRENT_DIR/../ diff --git a/tools/clear-po-headers.sh b/tools/clear-po-headers.sh index 883d08a4e..12f6882df 100755 --- a/tools/clear-po-headers.sh +++ b/tools/clear-po-headers.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CURRENT_DIR=$(cd `dirname $0` && pwd) diff --git a/tools/generate-secret-key.sh b/tools/generate-secret-key.sh index 0c90035b1..708550ff9 100755 --- a/tools/generate-secret-key.sh +++ b/tools/generate-secret-key.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ### Generates a new DJANGO_SECRET_KEY for the local installation CURRENT_DIR=$(cd `dirname $0` && pwd) diff --git a/tools/quick-test.sh b/tools/quick-test.sh index d2730d973..c8ca5a987 100755 --- a/tools/quick-test.sh +++ b/tools/quick-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ARGS="" diff --git a/tools/test-all.sh b/tools/test-all.sh index d6a4e9dd0..8e4120fe9 100755 --- a/tools/test-all.sh +++ b/tools/test-all.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo ""