Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-04-27 17:14:44 +0300
committernachoparker <nacho@ownyourbits.com>2018-04-27 17:14:44 +0300
commitff223116b3d4e189d7a7616443b63863b82c8b85 (patch)
tree6936068049ae5db4dd76104d328c2c6ab9d9fab7 /etc
parent7e2b72d1129cc32937056ed6205fd60ba9553a15 (diff)
armbian: fix postfix configuration hook
Diffstat (limited to 'etc')
-rw-r--r--etc/ncp-config.d/nc-nextcloud.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh
index 639a9e5b..9db038a9 100644
--- a/etc/ncp-config.d/nc-nextcloud.sh
+++ b/etc/ncp-config.d/nc-nextcloud.sh
@@ -50,13 +50,14 @@ install()
# POSTFIX
$APTINSTALL postfix || {
- # post installation script fails in Armbian build, so mark as no problem for the rest of the build
- echo "[NCP] Please, ignore the previous postfix installation error"
- sed -i '/^Package: postfix$/{n;d}' /var/lib/dpkg/status
- sed -i '/^Package: postfix$/aStatus: install ok installed' /var/lib/dpkg/status
+ # [armbian] workaround for bug - https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1531299
+ echo "[NCP] Please, ignore the previous postfix installation error ..."
+ mv /usr/bin/newaliases /
+ ln -s /bin/true /usr/bin/newaliases
+ $APTINSTALL postfix
+ rm /usr/bin/newaliases
+ mv /newaliases /usr/bin/newaliases
}
- sed -i 's|^smtpd_banner .*|smtpd_banner = $myhostname ESMTP|' /etc/postfix/main.cf
- sed -i 's|^disable_vrfy_command .*|disable_vrfy_command = yes|' /etc/postfix/main.cf
# REDIS
$APTINSTALL redis-server php7.0-redis