1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Make installed state comparisons ignore new user and alias attributes when comparing MiaB to MiaB-LDAP

This commit is contained in:
downtownallday
2020-08-25 16:36:01 -04:00
parent 5eb008cae9
commit 07d83d1e5c
2 changed files with 50 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ init() {
}
upstream_install() {
local upstream_dir="$HOME/mailinabox-upstream"
local upstream_dir="$1"
H1 "INSTALL UPSTREAM"
[ ! -x /usr/bin/git ] && apt-get install -y -qq git
@@ -132,14 +132,17 @@ then
echo "Warning: MiaB-LDAP is already installed! Skipping installation of upstream"
else
# install upstream
upstream_install
upstream_dir="$HOME/mailinabox-upstream"
upstream_install "$upstream_dir"
. /etc/mailinabox.conf
# populate some data
populate_by_name "${1:-basic}"
# capture upstream state
pushd "$upstream_dir" >/dev/null
installed_state_capture "/tmp/state/upstream"
popd >/dev/null
fi
# install miab-ldap and capture state