CalamaresUtils::System is now a class.

This commit is contained in:
Teo Mrnjavac 2015-08-06 19:10:04 +02:00
parent 0803d86c40
commit 42e465aa10
12 changed files with 158 additions and 99 deletions

View file

@ -57,11 +57,13 @@ SetTimezoneJob::exec()
tr( "Bad path: %1" ).arg( zoneFile.absolutePath() ) );
// Make sure /etc/localtime doesn't exist, otherwise symlinking will fail
CalamaresUtils::targetEnvCall( { "rm",
CalamaresUtils::System::instance()->
targetEnvCall( { "rm",
"-f",
localtimeSlink } );
int ec = CalamaresUtils::targetEnvCall( { "ln",
int ec = CalamaresUtils::System::instance()->
targetEnvCall( { "ln",
"-s",
zoneinfoPath,
localtimeSlink } );