Compare commits
No commits in common. "7c0481a9601fb8c7f2892e8cadd89fba0e618c8b" and "43b8f400eb06c11d66838837945c2e23fd6c35c7" have entirely different histories.
7c0481a960
...
43b8f400eb
|
@ -41,23 +41,19 @@ define( 'WP_DEBUG_LOG', true );
|
||||||
PHP
|
PHP
|
||||||
wp core install \
|
wp core install \
|
||||||
--path="$wp_path" \
|
--path="$wp_path" \
|
||||||
--url="$domain" \
|
--url="$domain".com \
|
||||||
--title="$wp_title" \
|
--title="$wp_title" \
|
||||||
--admin_user="$wp_user" \
|
--admin_user="$wp_user" \
|
||||||
--admin_password="$wp_pass" \
|
--admin_password="$wp_pass" \
|
||||||
--admin_email="$wp_email"
|
--admin_email="$wp_email"
|
||||||
fi
|
fi
|
||||||
EOSSH
|
|
||||||
|
|
||||||
if [ -n "$wp_themes" ] ; then
|
if [ -n "$wp_themes" ] ; then
|
||||||
printf "\nInstalling themes ..."
|
printf "\nInstalling themes ..."
|
||||||
option='--activate'
|
option='--activate'
|
||||||
for theme in $wp_themes ; do
|
for theme in $wp_themes ; do
|
||||||
echo " installing $theme ..."
|
echo " installing $theme ..."
|
||||||
ssh -T $ssh << EOSSH
|
wp theme install $theme "$option" --path="$wp_path" --allow-root
|
||||||
su "$user"
|
|
||||||
wp theme install $theme "$option" --path="$wp_path"
|
|
||||||
EOSSH
|
|
||||||
option=''
|
option=''
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -66,10 +62,7 @@ if [ -n "$wp_plugins" ] ; then
|
||||||
printf "\nInstalling plugins ..."
|
printf "\nInstalling plugins ..."
|
||||||
for plugin in $wp_plugins ; do
|
for plugin in $wp_plugins ; do
|
||||||
echo " installing $plugin ..."
|
echo " installing $plugin ..."
|
||||||
ssh -T $ssh << EOSSH
|
wp plugin install $plugin --path="$wp_path" --allow-root
|
||||||
su "$user"
|
|
||||||
wp plugin install $plugin --path="$wp_path"
|
|
||||||
EOSSH
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -77,10 +70,7 @@ if [ -n "$wp_plugins_active" ] ; then
|
||||||
printf "\nInstalling plugins to activate ..."
|
printf "\nInstalling plugins to activate ..."
|
||||||
for plugin in $wp_plugins_active ; do
|
for plugin in $wp_plugins_active ; do
|
||||||
echo " installing $plugin ..."
|
echo " installing $plugin ..."
|
||||||
ssh -T $ssh << EOSSH
|
wp plugin install $plugin --activate --path="$wp_path" --allow-root
|
||||||
su "$user"
|
|
||||||
wp plugin install $plugin --activate --path="$wp_path"
|
|
||||||
EOSSH
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -88,14 +78,13 @@ if [ -n "$wp_plugins_active" ] ; then
|
||||||
printf "\nUninstalling plugins ..."
|
printf "\nUninstalling plugins ..."
|
||||||
for plugin in $wp_plugins_uninstall ; do
|
for plugin in $wp_plugins_uninstall ; do
|
||||||
echo " installing $plugin ..."
|
echo " installing $plugin ..."
|
||||||
ssh -T $ssh << EOSSH
|
wp plugin deactivate $plugin --path="$wp_path" --allow-root
|
||||||
su "$user"
|
wp plugin uninstall $plugin --path="$wp_path" --allow-root
|
||||||
wp plugin deactivate $plugin --path="$wp_path"
|
|
||||||
wp plugin uninstall $plugin --path="$wp_path"
|
|
||||||
EOSSH
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
EOSSH
|
||||||
|
|
||||||
config_path='/etc/apache2/sites-available/wordpress.conf'
|
config_path='/etc/apache2/sites-available/wordpress.conf'
|
||||||
ssh -T $ssh << EOSSH
|
ssh -T $ssh << EOSSH
|
||||||
if [ -n "$apache2_version" ] ; then
|
if [ -n "$apache2_version" ] ; then
|
||||||
|
|
Loading…
Reference in New Issue