mirror of
https://github.com/linuxserver/docker-cops.git
synced 2026-02-19 18:51:05 +08:00
migrate config to v3 but leave old one in place just in case
This commit is contained in:
parent
c40c2e4db4
commit
ef086a724d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user