25 if (options.
Has(
"keychain")) {
31 settings.
fqrn().c_str());
33 std::string creator_version;
38 creator_version.c_str());
41 "Configuration error: CVMFS_CREATOR_VERSION missing");
45 repository.IsMasterReplica() ?
"yes" :
"no");
46 if (repository.whitelist()->IsExpired()) {
49 double delta_s = difftime(repository.whitelist()->expires(), time(NULL));
50 int delta_d =
static_cast<int>(delta_s / 86400);
56 "Add %s to CVMFS_REPOSITORIES in /etc/cvmfs/default.local\n"
57 "Create /etc/cvmfs/config.d/%s.conf and set\n"
58 " CVMFS_SERVER_URL=%s\n"
59 " CVMFS_PUBLIC_KEY=%s\n"
60 "Copy %s to the client",
61 settings.
fqrn().c_str(),
62 settings.
fqrn().c_str(),
63 settings.
url().c_str(),
67 if (options.
Has(
"meta-info")) {
69 repository.meta_info().c_str());
SettingsKeychain * GetKeychain()
void SetKeychainDir(const std::string &keychain_dir)
bool Has(const std::string &key) const
std::string GetString(const std::string &key) const
const SettingsPublisher & settings() const
const std::vector< Argument > & plain_args() const
Repository(const SettingsRepository &settings, const bool exists=true)
std::string master_public_key_path() const
bool IsManagedRepository() const
SettingsRepository CreateSettingsRepository(const std::string &ident)
virtual int Main(const Options &options)
bool GetValue(const std::string &key, std::string *value) const
OptionsManager * options_mgr() const
const SettingsKeychain & keychain() const
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)