Skip to content

Commit

Permalink
Ensure that /etc/localtime is a symlink from mageia
Browse files Browse the repository at this point in the history
  • Loading branch information
tpgxyz authored and Per Øyvind Karlsen (proyvind) committed Feb 18, 2015
1 parent 1cad6e5 commit 8332534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perl-install/timezone.pm
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ sub write {
set_ntp_server($t->{ntp});

my $tz_prefix = get_timezone_prefix(1);
eval { symlinkf($tz_prefix . '/' . $t->{timezone}, "$::prefix/etc/localtime") };
$@ and log::l("installing /etc/localtime failed");
run_program::run('timedatectl', 'set-timezone', $t->{timezone});
$@ and log::l("installing /etc/localtime failed");

Expand Down

0 comments on commit 8332534

Please sign in to comment.