mirror of
https://github.com/unraid/api.git
synced 2026-01-08 09:39:49 -06:00
fix: remove hard-coded entry for keyserver from hosts file
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user