#!/bin/bash # info: update dns templates # options: [RESTART] # # example: v-update-dns-templates # # This function for obtaining updated dns templates from Hestia package. #----------------------------------------------------------# # Variables & Functions # #----------------------------------------------------------# # Argument definition restart=$1 # Includes # shellcheck source=/etc/hestiacp/hestia.conf source /etc/hestiacp/hestia.conf # shellcheck source=/usr/local/hestia/func/main.sh source $HESTIA/func/main.sh # load config file source_conf "$HESTIA/conf/hestia.conf" # Perform verification if read-only mode is enabled check_hestia_demo_mode #----------------------------------------------------------# # Action # #----------------------------------------------------------# # Update templates cp -rf $HESTIA_COMMON_DIR/templates/dns $HESTIA/data/templates/ #----------------------------------------------------------# # Hestia # #----------------------------------------------------------# $BIN/v-log-action "system" "Info" "Updates" "Default DNS zone templates updated." exit