|
|
@ -904,6 +904,7 @@ class EEStackController(CementBaseController): |
|
|
|
@expose() |
|
|
|
def install(self, packages=[], apt_packages=[]): |
|
|
|
self.msg = [] |
|
|
|
try: |
|
|
|
if self.app.pargs.web: |
|
|
|
Log.debug(self, "Setting apt_packages variable for Nginx ,PHP" |
|
|
|
" ,MySQL ") |
|
|
@ -932,7 +933,8 @@ class EEStackController(CementBaseController): |
|
|
|
apt_packages = apt_packages + EEVariables.ee_mail |
|
|
|
packages = packages + [["https://github.com/opensolutions/" |
|
|
|
"ViMbAdmin/archive/3.0.10.tar.gz", |
|
|
|
"/tmp/vimbadmin.tar.gz", "ViMbAdmin"], |
|
|
|
"/tmp/vimbadmin.tar.gz", |
|
|
|
"ViMbAdmin"], |
|
|
|
["https://github.com/roundcube/" |
|
|
|
"roundcubemail/releases/download/" |
|
|
|
"1.0.4/roundcubemail-1.0.4.tar.gz", |
|
|
@ -940,7 +942,8 @@ class EEStackController(CementBaseController): |
|
|
|
"Roundcube"]] |
|
|
|
|
|
|
|
if EEVariables.ee_ram > 1024: |
|
|
|
apt_packages = apt_packages + EEVariables.ee_mailscanner |
|
|
|
apt_packages = (apt_packages + |
|
|
|
EEVariables.ee_mailscanner) |
|
|
|
else: |
|
|
|
Log.info(self, "Mail server is allready installed") |
|
|
|
|
|
|
@ -979,52 +982,61 @@ class EEStackController(CementBaseController): |
|
|
|
Log.info(self, "WP-CLI is allready installed") |
|
|
|
if self.app.pargs.phpmyadmin: |
|
|
|
Log.debug(self, "Setting packages varible for phpMyAdmin ") |
|
|
|
packages = packages + [["https://github.com/phpmyadmin/phpmyadmin" |
|
|
|
"/archive/STABLE.tar.gz", |
|
|
|
packages = packages + [["https://github.com/phpmyadmin/" |
|
|
|
"phpmyadmin/archive/STABLE.tar.gz", |
|
|
|
"/tmp/pma.tar.gz", "phpMyAdmin"]] |
|
|
|
|
|
|
|
if self.app.pargs.adminer: |
|
|
|
Log.debug(self, "Setting packages variable for Adminer ") |
|
|
|
packages = packages + [["http://downloads.sourceforge.net/adminer" |
|
|
|
"/adminer-4.1.0.php", "/var/www/22222/" |
|
|
|
"htdocs/db/adminer/index.php", "Adminer"]] |
|
|
|
packages = packages + [["http://downloads.sourceforge.net/" |
|
|
|
"adminer/adminer-4.1.0.php", |
|
|
|
"/var/www/22222/" |
|
|
|
"htdocs/db/adminer/index.php", |
|
|
|
"Adminer"]] |
|
|
|
|
|
|
|
if self.app.pargs.utils: |
|
|
|
Log.debug(self, "Setting packages variable for utils") |
|
|
|
packages = packages + [["http://phpmemcacheadmin.googlecode.com/" |
|
|
|
"files/phpMemcachedAdmin-1.2.2" |
|
|
|
packages = packages + [["http://phpmemcacheadmin.googlecode" |
|
|
|
".com/files/phpMemcachedAdmin-1.2.2" |
|
|
|
"-r262.tar.gz", '/tmp/memcache.tar.gz', |
|
|
|
'phpMemcachedAdmin'], |
|
|
|
["https://raw.githubusercontent.com/rtCamp/" |
|
|
|
"eeadmin/master/cache/nginx/clean.php", |
|
|
|
["https://raw.githubusercontent.com" |
|
|
|
"/rtCamp/eeadmin/master/cache/nginx/" |
|
|
|
"clean.php", |
|
|
|
"/var/www/22222/htdocs/cache/" |
|
|
|
"nginx/clean.php", "clean.php"], |
|
|
|
["https://raw.github.com/rlerdorf/opcache-" |
|
|
|
"status/master/opcache.php", |
|
|
|
["https://raw.github.com/rlerdorf/" |
|
|
|
"opcache-status/master/opcache.php", |
|
|
|
"/var/www/22222/htdocs/cache/" |
|
|
|
"opcache/opcache.php", "opcache.php"], |
|
|
|
["https://raw.github.com/amnuts/opcache-gui" |
|
|
|
"/master/index.php", |
|
|
|
["https://raw.github.com/amnuts/" |
|
|
|
"opcache-gui/master/index.php", |
|
|
|
"/var/www/22222/htdocs/" |
|
|
|
"cache/opcache/opgui.php", "index.php"], |
|
|
|
["https://gist.github.com/ck-on/4959032/raw" |
|
|
|
"/0b871b345fd6cfcd6d2be030c1f33d1ad6a475cb" |
|
|
|
"/ocp.php", |
|
|
|
"cache/opcache/opgui.php", |
|
|
|
"index.php"], |
|
|
|
["https://gist.github.com/ck-on/4959032" |
|
|
|
"/raw/0b871b345fd6cfcd6d2be030c1f33d1" |
|
|
|
"ad6a475cb/ocp.php", |
|
|
|
"/var/www/22222/htdocs/cache/" |
|
|
|
"opcache/ocp.php", "ocp.php"], |
|
|
|
["https://github.com/jokkedk/webgrind/" |
|
|
|
"archive/master.tar.gz", |
|
|
|
'/tmp/webgrind.tar.gz', 'Webgrind'], |
|
|
|
["http://bazaar.launchpad.net/~percona-too" |
|
|
|
"lkit-dev/percona-toolkit/2.1/download/he" |
|
|
|
"ad:/ptquerydigest-20110624220137-or26tn4" |
|
|
|
["http://bazaar.launchpad.net/~" |
|
|
|
"percona-toolkit-dev/percona-toolkit/" |
|
|
|
"2.1/download/head:/ptquerydigest-" |
|
|
|
"20110624220137-or26tn4" |
|
|
|
"expb9ul2a-16/pt-query-digest", |
|
|
|
"/usr/bin/pt-query-advisor", |
|
|
|
"pt-query-digest"], |
|
|
|
["https://github.com/box/Anemometer/archive" |
|
|
|
"/master.tar.gz", |
|
|
|
["https://github.com/box/Anemometer/" |
|
|
|
"archive/master.tar.gz", |
|
|
|
'/tmp/anemometer.tar.gz', 'Anemometer'] |
|
|
|
] |
|
|
|
except Exception as e: |
|
|
|
pass |
|
|
|
|
|
|
|
if len(apt_packages) or len(packages): |
|
|
|
Log.debug(self, "Calling pre_pref ") |
|
|
|
self.pre_pref(apt_packages) |
|
|
|
if len(apt_packages): |
|
|
|