-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.sh
executable file
·42 lines (30 loc) · 1007 Bytes
/
install.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
# NOTE: This is not complete yet
# TODO: Make it more robust
# TODO: Add prerequsites.
# TODO: Make this suitable for a real plugin.
# Only needed to get the tests to perl run
#/usr/local/cpanel/3rdparty/perl/522/bin/cpan Test::MockTime
#/usr/local/cpanel/3rdparty/perl/522/bin/cpan URL::Encode
# Setup the whm application
cd /usr/local/cpanel/whostmgr/docroot/templates/
mkdir plugins
cd plugins
mkdir cpanel
cd plugins
ln -s /var/cpanel/plugins/cpanel/todo/ulc/whostmgr/docroot/templates/todo todo
# Setup the whm application
cd /usr/local/cpanel/base/frontend/paper_lantern/
mkdir plugins
cd plugins
mkdir cpanel
cd plugins
ln -s /var/cpanel/plugins/cpanel/todo/ulc/base/frontend/paper_lantern/todo todo
# Setup the UAPI call
cd /usr/local/cpanel/Cpanel/API/
ln -s /var/cpanel/plugins/cpanel/todo/ulc/Cpanel/API/Todo.pm Todo.pm
# Setup the Perl Modules
cd /usr/local/cpanel/Cpanel
mkdir Plugins
cd Plugins
mkdir Cpanel
ln -s /var/cpanel/plugins/cpanel/todo/ulc/Cpanel/Plugins/Cpanel/Todo Todo