Project

General

Profile

« Previous | Next » 

Revision 1a73f5cd

Added by Jonathan CLARKE over 9 years ago

Fixes #6000: Error output on Time settings at first run

View differences:

techniques/systemSettings/misc/clockConfiguration/1.0/clockConfiguration.st
"clock_set_norway" expression => strcmp("&CLOCK_TIMEZONE&","norway");
"clock_set_beijing" expression => strcmp("&CLOCK_TIMEZONE&","beijing");
"ntp_config_file_exists" expression => fileexists("/etc/ntp.conf");
clock_vardef.windows::
# check if we need to change the windows timezone
"need_to_change_timezone" not => strcmp("${windows_timezone}", "${current_timezone}");
......
files:
# Adjust ntp.conf (Add the servers)
!windows::
!windows.(ntp_config_file_exists|ntp_installed)::
"/etc/ntp.conf"
edit_line => setNtpServer("@{this.ntpServers}"),
edit_defaults => noempty_backup,
techniques/systemSettings/misc/clockConfiguration/2.0/clockConfiguration.st
"clock_set_norway" expression => strcmp("&CLOCK_TIMEZONE&","norway");
"clock_set_beijing" expression => strcmp("&CLOCK_TIMEZONE&","beijing");
"ntp_config_file_exists" expression => fileexists("/etc/ntp.conf");
clock_vardef.windows::
# check if we need to change the windows timezone
......
files:
# Adjust ntp.conf (Add the servers)
!windows::
!windows.(ntp_config_file_exists|ntp_installed)::
"/etc/ntp.conf"
edit_line => setNtpServer("@{this.ntpServers}"),
edit_defaults => noempty_backup,

Also available in: Unified diff