Browse Source

Only install phpMyAdmin if /var/www/shared/pma is not present on system

old-stable
Mitesh Shah 11 years ago
parent
commit
39c64e5d38
  1. 28
      usr/local/sbin/easyengine

28
usr/local/sbin/easyengine

@ -175,22 +175,26 @@ WP-CLI()
INSTALLPMA() INSTALLPMA()
{ {
# Install PMA/phpMyAdmin # Install PMA/phpMyAdmin
echo -e "\033[34m Installing PMA... \e[0m" if [ ! -d /var/www/shared/pma ]
then
echo -e "\033[34m Installing PMA... \e[0m"
# Setup PMA/phpMyAdmin # Setup PMA/phpMyAdmin
mkdir -p /var/www/shared/pma/ || OwnError "Unable To Create Directory: /var/www/shared/pma/" mkdir -p /var/www/shared/pma/ || OwnError "Unable To Create Directory: /var/www/shared/pma/"
# Download PMA/phpMyAdmin # Download PMA/phpMyAdmin
#cd /var/www/shared/pma/ || OwnError "Unable To Change Directory: /var/www/shared/pma/" wget -cO /var/www/shared/pma/pma.tar.gz http://dl.cihar.com/phpMyAdmin/master/phpMyAdmin-master-latest.tar.gz \
wget -cO /var/www/shared/pma/pma.tar.gz http://dl.cihar.com/phpMyAdmin/master/phpMyAdmin-master-latest.tar.gz \ || OwnError "Unable To Download PMA"
|| OwnError "Unable To Download PMA"
# Extract PMA/phpMyAdmin # Extract PMA/phpMyAdmin
tar --strip-components=1 -zxf /var/www/shared/pma/pma.tar.gz -C /var/www/shared/pma/ \ tar --strip-components=1 -zxf /var/www/shared/pma/pma.tar.gz -C /var/www/shared/pma/ \
|| OwnError "Unable To Extract PMA" || OwnError "Unable To Extract PMA"
# Remove Unwanted Files # Remove Unwanted Files
rm -f /var/www/shared/pma/pma.tar.gz rm -f /var/www/shared/pma/pma.tar.gz
else
echo -e "\033[34m Already Installed phpMyAdmin (/var/www/shared/pma)... \e[0m"
fi
} }
INSTALLMYSQL() INSTALLMYSQL()

Loading…
Cancel
Save