Merge pull request #1048 from extremeshok/patch-7
Support for alpine linux (generate_config.sh)master
commit
035b153445
|
@ -1,5 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
+#exit on error and pipefail
|
||||||
|
+set -o errexit
|
||||||
|
+set -o pipefail
|
||||||
|
|
||||||
|
if grep --help 2>&1 | grep -q -i "busybox"; then
|
||||||
|
echo "BusybBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if cp --help 2>&1 | grep -q -i "busybox"; then
|
||||||
|
echo "BusybBox cp detected, please install coreutils, \"apk add --no-cache --upgrade coreutils\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f mailcow.conf ]]; then
|
if [[ -f mailcow.conf ]]; then
|
||||||
read -r -p "A config file exists and will be overwritten, are you sure you want to contine? [y/N] " response
|
read -r -p "A config file exists and will be overwritten, are you sure you want to contine? [y/N] " response
|
||||||
case $response in
|
case $response in
|
||||||
|
|
Loading…
Reference in New Issue