-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlocs.cpp
More file actions
19 lines (14 loc) · 757 Bytes
/
locs.cpp
File metadata and controls
19 lines (14 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2019 by Yuri Victorovich. All rights reserved.
#include "locs.h"
#include "util.h"
#include <string>
namespace Locations {
const char *jailDirectoryPath = "/var/run/crate";
const char *jailSubDirectoryIfaces = "/ifaces";
const char *cacheDirectoryPath = "/var/cache/crate";
const std::string ctxFwUsersFilePath = std::string(jailDirectoryPath) + "/ctx-firewall-users";
const std::string baseArchive = std::string(Locations::cacheDirectoryPath) + "/base.txz";
const std::string baseArchiveUrl = STRg("ftp://ftp1.freebsd.org/pub/FreeBSD/snapshots/"
<< Util::getSysctlString("hw.machine") << "/" << Util::getSysctlString("kern.osrelease")
<< "/base.txz");
}