Fix mhsendmail install

This commit is contained in:
cytopia
2022-03-23 00:27:00 +01:00
parent dc15215156
commit 176f48d063
14 changed files with 13 additions and 27 deletions

View File

@@ -206,8 +206,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -228,8 +228,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -257,8 +257,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -262,8 +262,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -278,8 +278,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -259,8 +259,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -258,8 +258,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -277,8 +277,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -278,8 +278,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -278,8 +278,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -231,8 +231,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -231,8 +231,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -220,8 +220,7 @@ RUN set -eux \
\ \
\ \
# -------------------- mhsendmail -------------------- # -------------------- mhsendmail --------------------
&& # Only on amd64 systems && if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \
&& mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \ && mv mhsendmail_linux_amd64 /usr/local/bin/mhsendmail; \

View File

@@ -711,7 +711,6 @@ software_available:
mhsendmail: mhsendmail:
all: all:
command: | command: |
# Only on amd64 systems
if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \ if [ "$(dpkg-architecture --query DEB_HOST_ARCH)" = "amd64" ]; then \
curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \ curl -sS -L --fail https://github.com/devilbox/mhsendmail/releases/download/v0.3.0/mhsendmail_linux_amd64 > mhsendmail_linux_amd64 \
&& chmod +x mhsendmail_linux_amd64 \ && chmod +x mhsendmail_linux_amd64 \