gau1991 10 years ago
parent
commit
35805a1ff7
  1. 8
      src/vendor/ee_ven_install_vimbadmin.sh

8
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

Loading…
Cancel
Save