mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Merge branch 'master' of github.com:bohanyang/debi
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user