From 35805a1ff797baabc7786b601ea984211d952dac Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 3 Dec 2014 13:19:20 +0530 Subject: [PATCH] Fixes http://community.rtcamp.com/t/unable-to-download-vimbadmin/3302/4 --- src/vendor/ee_ven_install_vimbadmin.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/vendor/ee_ven_install_vimbadmin.sh b/src/vendor/ee_ven_install_vimbadmin.sh index 4f1d23a9..23569134 100644 --- a/src/vendor/ee_ven_install_vimbadmin.sh +++ b/src/vendor/ee_ven_install_vimbadmin.sh @@ -4,13 +4,15 @@ function ee_ven_install_vimbadmin() { # Install needed PHP5 libraries for ViMbAdmin - # ee stack install php installed php5-mcrypt, php5-memcache, php5-mysqlnd + # ee stack install php installed php5-mcrypt, php5-memcache, php5-mysqlnd $EE_APT_GET install php5-cgi php5-json php-gettext \ || ee_lib_error "Unable to install php-pear, exit status = " $? # Install ViMbAdmin ee_lib_echo "Installing ViMbAdmin, please wait..." ee_lib_echo "It will take nearly 10-20 minutes, please wait..." + mkdir -p /var/www/22222/htdocs/ \ + || ee_lib_error "Unable to create ViMbAdmin Directory, exit status = " $? wget -cqO /var/www/22222/htdocs/vimbadmin.tar.gz https://github.com/opensolutions/ViMbAdmin/archive/${EE_VIMBADMIN_VERSION}.tar.gz \ || ee_lib_error "Unable to download ViMbAdmin, exit status = " $? @@ -25,8 +27,8 @@ function ee_ven_install_vimbadmin() || ee_lib_error "Unable to install ViMbAdmin, exit status = " $? # Fix permissions - chown -R $EE_PHP_USER:$EE_PHP_USER /var/www/22222/htdocs/vimbadmin \ - || ee_lib_error "Unable to change ownership for ViMbAdmin, exit status = " $? + chown -R $EE_PHP_USER:$EE_PHP_USER /var/www/22222/ \ + || ee_lib_error "Unable to change ownership for ViMbAdmin, exit status = " $? # Remove unwanted files rm -rf /var/www/22222/htdocs/vimbadmin.tar.gz /var/www/22222/htdocs/vimbadmin/composer.phar