1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-19 18:17:22 +01:00

remove the hard-coded migration ID from setup.sh

This commit is contained in:
Joshua Tauberer
2014-07-10 12:49:19 +00:00
parent 41b3df6d78
commit 6f51b49671
2 changed files with 20 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ fi
if [ -f /etc/mailinabox.conf ]; then
# Run any system migrations before proceeding. Since this is a second run,
# we assume we have Python already installed.
setup/migrate.py
setup/migrate.py --migrate
# Okay now load the old .conf file to get existing configuration options.
cat /etc/mailinabox.conf | sed s/^/DEFAULT_/ > /tmp/mailinabox.prev.conf
@@ -38,7 +38,7 @@ if [ -f /etc/mailinabox.conf ]; then
MIGRATIONID=$DEFAULT_MIGRATIONID
else
# What migration are we at for new installs?
MIGRATIONID=1
MIGRATIONID=$(setup/migrate.py --current)
fi
# The box needs a name.