From 7dc0a05a71d958918644339649ac6874c821eacb Mon Sep 17 00:00:00 2001 From: Harald Glatt Date: Fri, 10 May 2019 15:41:24 +0200 Subject: [PATCH] Update all helper scripts to '/usr/bin/env bash' shebang --- helper-scripts/backup_and_restore.sh | 2 +- helper-scripts/mailcow-reset-admin.sh | 2 +- helper-scripts/nextcloud.sh | 2 +- helper-scripts/reset-learns.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helper-scripts/backup_and_restore.sh b/helper-scripts/backup_and_restore.sh index 704997c7..93702830 100755 --- a/helper-scripts/backup_and_restore.sh +++ b/helper-scripts/backup_and_restore.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}" diff --git a/helper-scripts/mailcow-reset-admin.sh b/helper-scripts/mailcow-reset-admin.sh index 74179798..4afd14c9 100755 --- a/helper-scripts/mailcow-reset-admin.sh +++ b/helper-scripts/mailcow-reset-admin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash [[ -f mailcow.conf ]] && source mailcow.conf [[ -f ../mailcow.conf ]] && source ../mailcow.conf diff --git a/helper-scripts/nextcloud.sh b/helper-scripts/nextcloud.sh index 131b7639..b598c4f7 100755 --- a/helper-scripts/nextcloud.sh +++ b/helper-scripts/nextcloud.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash for bin in curl dirmngr; do if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi diff --git a/helper-scripts/reset-learns.sh b/helper-scripts/reset-learns.sh index 647c0e85..9fd11232 100755 --- a/helper-scripts/reset-learns.sh +++ b/helper-scripts/reset-learns.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash read -r -p "Are you sure you want to reset learned hashes from Rspamd (fuzzy, bayes, neural)? [y/N] " response response=${response,,} # tolower