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