mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-04 00:17:06 +00:00
Set miab-ldap migration version during first-time setup
This commit is contained in:
parent
7c29628530
commit
cf888d3f30
@ -251,7 +251,7 @@ def get_current_migration():
|
|||||||
ver = 0
|
ver = 0
|
||||||
while True:
|
while True:
|
||||||
next_ver = (ver + 1)
|
next_ver = (ver + 1)
|
||||||
migration_func = globals().get("migration_%d" % next_ver)
|
migration_func = globals().get("migration_miabldap_%d" % next_ver)
|
||||||
if not migration_func:
|
if not migration_func:
|
||||||
return ver
|
return ver
|
||||||
ver = next_ver
|
ver = next_ver
|
||||||
|
@ -80,9 +80,9 @@ fi
|
|||||||
if [ ! -d $STORAGE_ROOT ]; then
|
if [ ! -d $STORAGE_ROOT ]; then
|
||||||
mkdir -p $STORAGE_ROOT
|
mkdir -p $STORAGE_ROOT
|
||||||
fi
|
fi
|
||||||
if [ ! -f $STORAGE_ROOT/mailinabox.version ]; then
|
if [ ! -f $STORAGE_ROOT/mailinabox-ldap.version ]; then
|
||||||
echo $(setup/migrate.py --current) > $STORAGE_ROOT/mailinabox.version
|
echo $(setup/migrate.py --current) > $STORAGE_ROOT/mailinabox-ldap.version
|
||||||
chown $STORAGE_USER.$STORAGE_USER $STORAGE_ROOT/mailinabox.version
|
chown $STORAGE_USER.$STORAGE_USER $STORAGE_ROOT/mailinabox-ldap.version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Save the global options in /etc/mailinabox.conf so that standalone
|
# Save the global options in /etc/mailinabox.conf so that standalone
|
||||||
|
Loading…
Reference in New Issue
Block a user