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. 6
      usr/local/sbin/easyengine

6
usr/local/sbin/easyengine

@ -175,13 +175,14 @@ WP-CLI()
INSTALLPMA()
{
# Install PMA/phpMyAdmin
if [ ! -d /var/www/shared/pma ]
then
echo -e "\033[34m Installing PMA... \e[0m"
# Setup PMA/phpMyAdmin
mkdir -p /var/www/shared/pma/ || OwnError "Unable To Create Directory: /var/www/shared/pma/"
# 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 \
|| OwnError "Unable To Download PMA"
@ -191,6 +192,9 @@ INSTALLPMA()
# Remove Unwanted Files
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()

Loading…
Cancel
Save