Merge branch 'master' of github.com:bohanyang/debi

This commit is contained in:
Bohan Yang
2021-04-07 15:11:51 +00:00
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ This script is written to reinstall a VPS/virtual machine to Debian 10 Buster.
* SolusVM/OpenStack/DigitalOcean/Vultr/Linode/Proxmox/QEMU KVM (BIOS boot)
* Oracle Cloud Infrastructure (UEFI boot)
* Google Cloud Compute Engine (**Must configure VPC internal IP and gateway manually**, UEFI boot, Secure Boot supported)
* Google Cloud Compute Engine (**Must manually configure VPC internal IP and gateway.** UEFI boot with Secure Boot support)
* AWS EC2 & Lightsail (BIOS boot)
* Hyper-V & Azure (Generation 1 BIOS boot & Generation 2 UEFI boot)
+3 -3
View File
@@ -32,9 +32,9 @@ in_target_backup() {
}
configure_sshd() {
# !isset($backup_sshd_config)
[ -z ${backup_sshd_config+1s} ] && in_target_backup /etc/ssh/sshd_config
backup_sshd_config=
# !isset($sshd_config_backup)
[ -z ${sshd_config_backup+1s} ] && in_target_backup /etc/ssh/sshd_config
sshd_config_backup=
in_target sed -Ei \""s/^#?$1 .+/$1 $2/"\" /etc/ssh/sshd_config
}