gau1991
11 years ago
5 changed files with 76 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
# Install Postfix |
|||
|
|||
function ee_mod_install_postfix() |
|||
{ |
|||
# Setup Postfix |
|||
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" |
|||
debconf-set-selections <<< "postfix postfix/mailname string $(hostname -f)" |
|||
|
|||
# Install Postfix |
|||
ee_lib_echo "Installing Postfix, Please Wait..." |
|||
$EE_APT_GET install postfix || ee_lib_error "Unable to install postfix, exit status = " $? |
|||
} |
@ -0,0 +1,16 @@ |
|||
# Install Adminer |
|||
|
|||
function ee_ven_install_adminer() |
|||
{ |
|||
if [ ! -d /var/www/22222/htdocs/db/adminer ]; then |
|||
|
|||
# Setup Adminer |
|||
mkdir -p /var/www/22222/htdocs/db/adminer/ \ |
|||
|| ee_lib_error "Unable to create Adminer directory: /var/www/22222/htdocs/db/adminer/, exit status = " $? |
|||
|
|||
# Download Adminer |
|||
ee_lib_echo "Downloading Adminer, please wait..." |
|||
wget --no-check-certificate -cqO /var/www/22222/htdocs/db/adminer/index.php http://downloads.sourceforge.net/adminer/adminer-${EE_ADMINER_VERSION}.php \ |
|||
|| ee_lib_error "Unable to download Adminer, exit status = " $? |
|||
fi |
|||
} |
@ -0,0 +1,25 @@ |
|||
# Install phpMyAdmin |
|||
|
|||
function ee_ven_install_pma() |
|||
{ |
|||
if [ ! -d /var/www/22222/htdocs/db/pma ] |
|||
then |
|||
|
|||
# Setup phpMyAdmin |
|||
mkdir -p /var/www/22222/htdocs/db/pma/ \ |
|||
|| ee_lib_error "Unable to create phpMyAdmin directory: /var/www/22222/htdocs/db/pma/, exit status = " $? |
|||
|
|||
# Download phpMyAdmin |
|||
ee_lib_echo "Downloading phpMyAdmin, please wait..." |
|||
wget --no-check-certificate -cqO /var/www/22222/htdocs/db/pma/pma.tar.gz https://github.com/phpmyadmin/phpmyadmin/archive/STABLE.tar.gz \ |
|||
|| ee_lib_error "Unable to download phpMyAdmin, exit status = " $? |
|||
|
|||
# Extract phpMyAdmin |
|||
tar --strip-components=1 -zxf /var/www/22222/htdocs/db/pma/pma.tar.gz -C /var/www/22222/htdocs/db/pma/ \ |
|||
|| ee_lib_error "Unable to extract phpMyAdmin, exit status = " $? |
|||
|
|||
# Remove unwanted files |
|||
rm -f /var/www/22222/htdocs/db/pma/pma.tar.gz |
|||
|
|||
fi |
|||
} |
@ -0,0 +1,21 @@ |
|||
# Install wp-cli |
|||
|
|||
function ee_ven_install_wp_cli() |
|||
{ |
|||
if [ ! -d /usr/share/wp-cli ] |
|||
then |
|||
ee_lib_echo "Installing WP-CLI, please wait..." |
|||
curl -sL https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | INSTALL_DIR='/usr/share/wp-cli' VERSION=$EE_WPCLI_VERSION bash &>> $EE_COMMAND_LOG \ |
|||
|| ee_lib_error "Unable to install WP-CLI, exit status = " $? |
|||
|
|||
# Add WP-CLI command in $PATH variable |
|||
if [ ! -L /usr/bin/wp ]; then |
|||
ln -s /usr/share/wp-cli/bin/wp /usr/bin/wp \ |
|||
|| ee_lib_error "Unable to create symbolic link for WP-CLI command, exit status = " $? |
|||
fi |
|||
|
|||
# Auto completion for WP-CLI |
|||
cp /usr/share/wp-cli/vendor/wp-cli/wp-cli/utils/wp-completion.bash /etc/bash_completion.d/ |
|||
source /etc/bash_completion.d/wp-completion.bash |
|||
fi |
|||
} |
Loading…
Reference in new issue