-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcbsd.lua
95 lines (90 loc) · 2.54 KB
/
cbsd.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
product="CBSD"
myversion="11.1.17"
if not workdir then
print ( "no workdir" )
os.exit(1)
end
distdir="/usr/local/cbsd"
subr= workdir .. "/nc.lua"
nodenamefile= workdir .. "/nodename"
settingstui= workdir .. "/settings-tui.subr"
dialog= workdir .. "/dialog.subr"
tools= workdir .. "/tools.subr"
mdtools= workdir .. "/mdtools.subr"
zfstool= workdir .. "/zfs.subr"
jfs= workdir .. "/jfs.subr"
color= workdir .. "/ansiicolor.subr"
nodes= workdir .. "/nodes.subr"
jrcconf= workdir .. "/rcconf.subr"
vimageconf= workdir .. "/vnet.subr"
vimagetui= workdir .. "/vnet-tui.subr"
inventory= workdir .. "/nc.inventory"
nodedescr= workdir .. "/node.desc"
initenv= workdir .. "/initenv.subr"
system= workdir .. "/system.subr"
buildconf= workdir .. "/build.subr"
distccacheconf= workdir .. "/distccache.subr"
base2pkgconf= workdir .. "/base2pkg.subr"
mailconf= workdir .. "/mailtools.subr"
strings= workdir .. "/strings.subr"
miscdir= workdir .. "/misc"
jobdir= workdir .. "/job"
srcdir= workdir .. "/src"
tmpdir= workdir .. "/tmp"
ftmpdir= workdir .. "/ftmp"
importdir= workdir .. "/import"
exportdir= workdir .. "/export"
basejaildir= workdir .. "/basejail"
basejailpref="base"
jaildatadir= workdir .. "/jails-data"
jailfstabdir= workdir .. "/jails-fstab"
jailrcconfdir= workdir .. "/jails-rcconf"
jailfstabpref="fstab."
jaildir= workdir .. "/jails"
jaildatapref="data"
jailsysdir= workdir .. "/jails-system"
bindir= workdir .. "/bin"
etcdir= workdir .. "/etc"
jailctldir= workdir .. "/jailctl"
nodectl= workdir .. "/nodectl"
rcddir= workdir .. "/rc.d"
sbindir= workdir .. "/sbin"
systemdir= workdir .. "/system"
moduledir= workdir .. "/modules"
toolsdir= workdir .. "/tools"
upgradedir= workdir .. "/upgrade"
vardir= workdir .. "/var"
spooldir= vardir .. "/spool"
taskdir= spooldir .. "/task"
rundir= vardir .. "/run"
maildir= vardir .. "/mail"
logdir= vardir .. "/log"
sharedir= workdir .. "/share"
dbdir= vardir .. "/db"
localcbsdconffile= "/cbsd.lua"
localcbsdconf= workdir .. localcbsdconffile
sudoexecdir= workdir .. "/sudoexec"
systemsudoexecdir= distdir .. "/sudoexec"
cbsduser="cbsd"
production="0"
rsshdir= workdir .. "/.rssh"
sshdir= workdir .. "/.ssh"
templateldir= workdir .. "/template"
fwcount_st="99"
fwcount_end="2000"
greeting="node"
jailmapdb= dbdir .. "/jmap.txt"
-- external source for online doc
docversion="10.3"
cbsddocsrc="https://www.bsdstore.ru/en" .. docversion .. "/"
f=io.open(nodenamefile,"r")
if f ~= nil then
nodename = f:read("*l")
io.close(f)
end
-- if [ -n "${NOCOLOR}" ]; then
-- ECHO="echo"
-- else
-- ECHO="echo -e"
-- [ -f "${color}" ] && . $color
-- fi