-
Notifications
You must be signed in to change notification settings - Fork 4
/
install_modules.sh
62 lines (32 loc) · 1.29 KB
/
install_modules.sh
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
#!/bin/bash
#debug
set -x
cd modules
## ITSM module
if [ ! -e ITSM-6.0.21.opm ]; then
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install http://ftp.otrs.org/pub/otrs/itsm/bundle6/:ITSM-6.0.21.opm'
else
cp ITSM-6.0.21.opm /tmp/
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install /tmp/ITSM-6.0.21.opm'
fi
## FAQ
if [ ! -e FAQ-6.0.21.opm ]; then
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install http://ftp.otrs.org/pub/otrs/packages/:FAQ-6.0.21.opm'
else
cp FAQ-6.0.21.opm /tmp/
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install /tmp/FAQ-6.0.21.opm'
fi
## TimeAccounting
if [ ! -e TimeAccounting-6.0.12.opm ]; then
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install http://ftp.otrs.org/pub/otrs/packages/:TimeAccounting-6.0.12.opm'
else
cp TimeAccounting-6.0.123.opm /tmp/
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install /tmp/TimeAccounting-6.0.12.opm'
fi
## Survey
if [ ! -e Survey-6.0.11.opm ]; then
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install http://ftp.otrs.org/pub/otrs/packages/:Survey-6.0.11.opm'
else
cp Survey-6.0.11.opm /tmp/
su - otrs -c '/opt/otrs/bin/otrs.Console.pl Admin::Package::Install /tmp/Survey-6.0.11.opm'
fi