Set miab-ldap migration version during first-time setup

This commit is contained in:
downtownallday
2020-09-16 09:39:49 -04:00
parent 7c29628530
commit cf888d3f30
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -80,9 +80,9 @@ fi
if [ ! -d $STORAGE_ROOT ]; then
mkdir -p $STORAGE_ROOT
fi
if [ ! -f $STORAGE_ROOT/mailinabox.version ]; then
echo $(setup/migrate.py --current) > $STORAGE_ROOT/mailinabox.version
chown $STORAGE_USER.$STORAGE_USER $STORAGE_ROOT/mailinabox.version
if [ ! -f $STORAGE_ROOT/mailinabox-ldap.version ]; then
echo $(setup/migrate.py --current) > $STORAGE_ROOT/mailinabox-ldap.version
chown $STORAGE_USER.$STORAGE_USER $STORAGE_ROOT/mailinabox-ldap.version
fi
# Save the global options in /etc/mailinabox.conf so that standalone