migrate config to v3 but leave old one in place just in case

This commit is contained in:
aptalca 2024-09-09 12:08:08 -04:00 committed by GitHub
parent c40c2e4db4
commit ef086a724d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,13 @@ done
# copy config
if [[ ! -e /config/config/local.php ]]; then
cp /defaults/config/local.php /config/config/local.php
if [[ -e /config/config_local.php ]]; then
echo "**** Existing config found, migrating for v3. Please check the contents of /config/config/local.php which will be the active config in v3 ****"
cp /config/config_local.php /config/config/local.php
else
echo "**** New instance detected, generating default config at /config/config/local.php ****"
cp /defaults/config/local.php /config/config/local.php
fi
fi
# copy extra user-profiles