fix: remove hard-coded entry for keyserver from hosts file

This commit is contained in:
ljm42
2024-08-29 16:26:30 -07:00
committed by Eli Bosley
parent 03dc404aa7
commit 979e41fe41
2 changed files with 8 additions and 0 deletions

View File

@@ -501,6 +501,11 @@ for FILE in "${FILES[@]}"; do
fi
done
# remove keys.limetechnology.com from hosts file
# brings older versions of Unraid in sync with 6.12.12
# no need to restore original file on uninstall
if grep -q "keys.lime-technology.com" /etc/hosts &>/dev/null; then sed -i "/keys.lime-technology.com/d" /etc/hosts &>/dev/null; fi
# move settings on flash drive
CFG_OLD=/boot/config/plugins/Unraid.net
CFG_NEW=/boot/config/plugins/dynamix.my.servers

View File

@@ -295,6 +295,9 @@ if (!$isConnected) {
response_complete(406, array('error' => 'Must be connected to Unraid Connect Cloud to use Flash Backup'));
}
// ensure keys.lime-technology.com is not hard-coded in the hosts file
exec('if grep -q "keys.lime-technology.com" /etc/hosts &>/dev/null; then sed -i "/keys.lime-technology.com/d" /etc/hosts &>/dev/null; fi');
// keyfile
if (!file_exists('/var/local/emhttp/var.ini')) {
response_complete(406, array('error' => 'Machine still booting'));