mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-08-18 10:42:22 +00:00
Update customizable_post_install.sh
This commit is contained in:
parent
fc7c740691
commit
370f4694d1
@ -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")"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user