2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

CommonInstaller: auto-migrate from Substratum to Bucket, if required

This commit is contained in:
Christopher Roy Bratusek 2018-04-22 19:36:59 +02:00
parent f6dd01355d
commit cce0e0baa0

View File

@ -1172,10 +1172,15 @@ check_cfg_apps () {
sed -e 's/^INSTALL_APPS=//;s/\"//g' -i "${cfg_apps}"
fi
# 16.3 has KeePass DX instead of KeePassDroid, migrate
# <= 16.3 has KeePass DX instead of KeePassDroid, migrate
if grep -q KeePassDroid "${cfg_apps}"; then
sed -e 's/KeePassDroid/KeePassDX/g' -i "${cfg_apps}"
fi
# <= 17.0~beta1 has Substratum instead of Bucket (LibreSubtratum), migrate
if grep -q Substratum "${cfg_apps}"; then
sed -e 's/Substratum/Bucket/g' -i "${cfg_apps}"
fi
}
# check whether '.nanodroid-overlay' has new format