mirror of https://github.com/Icinga/icinga2.git
parent
d7d6d6096f
commit
9df1b6bc1c
|
@ -88,6 +88,8 @@ int FeatureDisableCommand::Run(const boost::program_options::variables_map& vm,
|
|||
if (unlink(target.CStr()) < 0) {
|
||||
Log(LogCritical, "cli", "Cannot disable feature '" + feature + "'. Unlinking target file '" + target +
|
||||
"' failed with error code " + Convert::ToString(errno) + ", \"" + Utility::FormatErrorNumber(errno) + "\".");
|
||||
errors.push_back(feature);
|
||||
continue;
|
||||
}
|
||||
|
||||
Log(LogInformation, "cli", "Disabling feature " + feature + " in '" + features_enabled_dir + "'.");
|
||||
|
|
|
@ -101,6 +101,8 @@ int FeatureEnableCommand::Run(const boost::program_options::variables_map& vm, c
|
|||
if (symlink(source.CStr(), target.CStr()) < 0) {
|
||||
Log(LogCritical, "cli", "Cannot enable feature '" + feature + "'. Linking source '" + source + "' to target file '" + target +
|
||||
"' failed with error code " + Convert::ToString(errno) + ", \"" + Utility::FormatErrorNumber(errno) + "\".");
|
||||
errors.push_back(feature);
|
||||
continue;
|
||||
}
|
||||
|
||||
Log(LogInformation, "cli", "Enabling feature '" + feature + "' in '" + features_enabled_dir + "'.");
|
||||
|
|
Loading…
Reference in New Issue