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
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
parent7e2b72d1129cc32937056ed6205fd60ba9553a15 (diff)
armbian: fix postfix configuration hook
-rw-r--r--armbian.sh4
-rw-r--r--etc/ncp-config.d/nc-nextcloud.sh13
2 files changed, 7 insertions, 10 deletions
diff --git a/armbian.sh b/armbian.sh
index 5d1559ae..618670a8 100644
--- a/armbian.sh
+++ b/armbian.sh
@@ -54,10 +54,6 @@ Main() {
cleanup_script $script
done
- # restore postfix package half-configured status
- sed -i '/^Package: postfix$/{n;d}' /var/lib/dpkg/status
- sed -i '/^Package: postfix$/aStatus: install ok half-configured' /var/lib/dpkg/status
-
# enable randomize passwords
systemctl enable nc-provisioning
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