aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-01-04 23:42:26 +0100
committerAngelo Naselli <anaselli@linux.it>2015-01-04 23:42:26 +0100
commit8fe4923d0bd8d097d5403d1a7a5a52f185ac9c22 (patch)
tree0bb7371074980c9ec4fc56cf8f68f69e013db927
parent8e76928c3751a4cd452debaeb9faeacfc37ca460 (diff)
downloadcolin-keep-8fe4923d0bd8d097d5403d1a7a5a52f185ac9c22.tar
colin-keep-8fe4923d0bd8d097d5403d1a7a5a52f185ac9c22.tar.gz
colin-keep-8fe4923d0bd8d097d5403d1a7a5a52f185ac9c22.tar.bz2
colin-keep-8fe4923d0bd8d097d5403d1a7a5a52f185ac9c22.tar.xz
colin-keep-8fe4923d0bd8d097d5403d1a7a5a52f185ac9c22.zip
/etc/localtime as link
-rw-r--r--lib/AdminPanel/Shared/TimeZone.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/AdminPanel/Shared/TimeZone.pm b/lib/AdminPanel/Shared/TimeZone.pm
index 9add801..112610c 100644
--- a/lib/AdminPanel/Shared/TimeZone.pm
+++ b/lib/AdminPanel/Shared/TimeZone.pm
@@ -451,9 +451,9 @@ sub writeConfiguration {
# if we are going to use systemd then we have to remove the link only
# if it is not a link, becuase it should be managed by systemd it self
# eval { unlink '/etc/localtime' } unless -l '/etc/localtime';
-# eval { unlink '/etc/localtime' };
-# eval { symlink $tz, '/etc/localtime' };
- eval { File::copy($tz, '/etc/localtime') } ;
+ unlink '/etc/localtime' or Sys::Syslog::syslog('info|local1', "unlinking /etc/localtime failed");
+ Sys::Syslog::syslog('info|local1', "Setting $tz as localtime");
+ symlink $tz, '/etc/localtime' or Sys::Syslog::syslog('info|local1', "linking $tz to /etc/localtime failed");
my $adjtime_file = '/etc/adjtime';
my @adjtime = MDK::Common::File::cat_($adjtime_file);