-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrpm.json
105 lines (105 loc) · 2.97 KB
/
rpm.json
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
95
96
97
98
99
100
101
102
103
104
105
{
"preinst": [
"echo 'Pre-Installation Procedure:'",
"getent passwd boomerang >/dev/null || useradd --base-dir /opt --home-dir /opt/boomerang-express --no-log-init --system --shell /sbin/nologin --no-create-home boomerang || true",
"echo 'DONE'"
],
"postinst": [
"echo 'Post-Installation Procedure:'",
"chkconfig --add boomerang-express",
"cd /opt/boomerang-express && npm install . --cache-min=1 --cache-max=2 --rollback true --color false",
"echo 'DONE'"
],
"post": [
"INSTALL=1",
"UPGRADE=2",
"if [ $1 -eq $INSTALL || $1 -eq $UPGRADE ];then cd /opt/boomerang-express && npm install . --cache-min=1 --cache-max=2 --rollback true --color false; fi"
],
"preun": [
"chkconfig --del boomerang-express"
],
"postun": [
"rm -rf /opt/boomerang-express/node_modules"
],
"files": [
{
"src": [
"lib/**/*.js",
"app.js",
"public/*",
"Gruntfile.js"
],
"dest": "/opt/boomerang-express/",
"owner": "boomerang",
"group": "boomerang",
"mode": "644"
},
{
"src": [
"package.json"
],
"dest": "/opt/boomerang-express/",
"owner": "boomerang",
"group": "boomerang",
"mode": "644"
},
{
"src": [
"config/*.example"
],
"dest": "/opt/boomerang-express/",
"owner": "root",
"group": "boomerang",
"mode": "644"
},
{
"src": [
"tasks/*.js",
"tasks/*.example"
],
"dest": "/opt/boomerang-express/",
"owner": "root",
"group": "boomerang",
"mode": "644"
},
{
"src": "boomerang-express",
"dest": "/etc/rc.d/init.d/",
"cwd": "etc/init.d",
"owner": "root",
"group": "root",
"mode": "755"
},
{
"src": "boomerang-express",
"dest": "/etc/default/",
"cwd": "etc/default",
"owner": "root",
"group": "root",
"mode": "644"
},
{
"src": "boomerang-express",
"dest": "/etc/logrotate.d/",
"cwd": "etc/logrotate.d",
"owner": "root",
"group": "root",
"mode": "644"
},
{
"src": [
"README.md",
"docs/*",
"docs/assets/img/*",
"docs/assets/img/*/*",
"docs/user/backends/*",
"docs/developer/*",
"docs/user/*",
"docs/user/backends/*"
],
"dest": "/usr/share/doc/boomerang-express",
"doc": true,
"cwd": "./"
}
]
}