This commit is contained in:
2025-04-25 08:12:15 +02:00
parent ed57a57fe2
commit f9723e6b9c
2 changed files with 3 additions and 0 deletions

View File

@ -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() {

View File

@ -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"