From 370f4694d19bb17a511c7c2eccdf8f5eedeae9e2 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sun, 17 Aug 2025 15:14:20 +0200 Subject: [PATCH] Update customizable_post_install.sh --- scripts/post_install/customizable_post_install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/post_install/customizable_post_install.sh b/scripts/post_install/customizable_post_install.sh index a36724a..b24d5e4 100644 --- a/scripts/post_install/customizable_post_install.sh +++ b/scripts/post_install/customizable_post_install.sh @@ -518,8 +518,6 @@ skip_apt_languages() { configure_time_sync() { msg_info2 "$(translate "Configuring system time settings...")" - # Set timezone - # msg_info "$(translate "Attempting to set timezone automatically based on IP address...")" # Get public IP address this_ip=$(dig +short myip.opendns.com @resolver1.opendns.com) @@ -547,12 +545,15 @@ configure_time_sync() { # Configure time synchronization msg_info "$(translate "Enabling automatic time synchronization...")" if timedatectl set-ntp true; then + systemctl restart postfix 2>/dev/null || true msg_ok "$(translate "Automatic time synchronization enabled")" + register_tool "time_sync" true + msg_success "$(translate "Time settings configuration completed")" else msg_error "$(translate "Failed to enable automatic time synchronization")" fi + - msg_success "$(translate "Time settings configuration completed")" }