mirror of
https://github.com/terem42/zfs-hetzner-vm.git
synced 2025-12-22 23:08:36 +00:00
removed ssh key check
This commit is contained in:
@@ -123,10 +123,10 @@ function check_prerequisites {
|
|||||||
echo 'This script must be run with administrative privileges!'
|
echo 'This script must be run with administrative privileges!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ ! -r /root/.ssh/authorized_keys ]]; then
|
# if [[ ! -r /root/.ssh/authorized_keys ]]; then
|
||||||
echo "SSH pubkey file is absent, please add it to the rescue system setting, then reboot into rescue system and run the script"
|
# echo "SSH pubkey file is absent, please add it to the rescue system setting, then reboot into rescue system and run the script"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
if ! dpkg-query --showformat="\${Status}" -W dialog 2> /dev/null | grep -q "install ok installed"; then
|
if ! dpkg-query --showformat="\${Status}" -W dialog 2> /dev/null | grep -q "install ok installed"; then
|
||||||
apt install --yes dialog
|
apt install --yes dialog
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user