Merge pull request #2592 from hachre/master

Update all helper scripts to '/usr/bin/env bash' shebang
master
André Peters 2019-05-10 20:31:45 +02:00 committed by GitHub
commit 233dda648d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ ! -z ${MAILCOW_BACKUP_LOCATION} ]]; then
BACKUP_LOCATION="${MAILCOW_BACKUP_LOCATION}"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
[[ -f mailcow.conf ]] && source mailcow.conf
[[ -f ../mailcow.conf ]] && source ../mailcow.conf

View File

@ -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

View File

@ -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