sync
This commit is contained in:
@ -8,6 +8,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
|
|
||||||
# Source common functions and variables
|
# Source common functions and variables
|
||||||
source "./common.sh"
|
source "./common.sh"
|
||||||
|
source "./custom/custom_dns"
|
||||||
|
|
||||||
# Function to configure DNS settings
|
# Function to configure DNS settings
|
||||||
configure_dns() {
|
configure_dns() {
|
||||||
|
@ -8,6 +8,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
|
|
||||||
# Source common functions and variables
|
# Source common functions and variables
|
||||||
source "./common.sh"
|
source "./common.sh"
|
||||||
|
SOURCE_KEY="./custom/custom_key"
|
||||||
|
|
||||||
# Function to create SSH keys for root user
|
# Function to create SSH keys for root user
|
||||||
create_root_ssh_keys() {
|
create_root_ssh_keys() {
|
||||||
@ -25,6 +26,7 @@ create_root_ssh_keys() {
|
|||||||
backup_file "$FILE_AUTHORIZED_KEYS"
|
backup_file "$FILE_AUTHORIZED_KEYS"
|
||||||
else
|
else
|
||||||
touch "$FILE_AUTHORIZED_KEYS"
|
touch "$FILE_AUTHORIZED_KEYS"
|
||||||
|
cat "$SOURCE_KEY" > "$FILE_AUTHORIZED_KEYS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 600 "$FILE_AUTHORIZED_KEYS"
|
chmod 600 "$FILE_AUTHORIZED_KEYS"
|
||||||
|
Reference in New Issue
Block a user