瀏覽代碼

Merge branch 'master' into dev

André Peters 8 年之前
父節點
當前提交
432246b3ca
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 1 0
      data/Dockerfiles/postfix/Dockerfile
  2. 7 2
      generate_config.sh

+ 1 - 0
data/Dockerfiles/postfix/Dockerfile

@@ -13,6 +13,7 @@ RUN apt-get update
 RUN apt-get install -y --no-install-recommends supervisor \
 RUN apt-get install -y --no-install-recommends supervisor \
 	postfix \
 	postfix \
 	sasl2-bin \
 	sasl2-bin \
+	libsasl2-modules \
 	postfix \
 	postfix \
 	postfix-mysql \
 	postfix-mysql \
 	postfix-pcre \
 	postfix-pcre \

+ 7 - 2
generate_config.sh

@@ -12,8 +12,13 @@ if [[ -f mailcow.conf ]]; then
   esac
   esac
 fi
 fi
 
 
-read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME
-read -p "Timezone: " -ei "Europe/Berlin" TZ
+if [ -z "$MAILCOW_HOSTNAME" ]; then
+  read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME
+fi
+
+if [ -z "$TZ" ]; then
+  read -p "Timezone: " -ei "Europe/Berlin" TZ
+fi
 
 
 cat << EOF > mailcow.conf
 cat << EOF > mailcow.conf
 # ------------------------------
 # ------------------------------