This commit is contained in:
asift91 2020-07-09 16:25:44 +05:30
Родитель bb76705d2d
Коммит fe32a4b274
1 изменённых файлов: 33 добавлений и 30 удалений

Просмотреть файл

@ -230,8 +230,7 @@ do
done
EOF
if [ "$cmsApplication" = "WordPress" ]; then
function install_wordpress() {
function install_wordpress_application() {
local dnsSite=$siteFQDN
local wpTitle=LAMP-WordPress
local wpAdminUser=admin
@ -256,11 +255,15 @@ EOF
# Install WordPress by using wp-cli commands
install_wordpress $dnsSite $wpTitle $wpAdminUser $wpAdminPassword $wpAdminEmail $wpPath
# Install WooCommerce plug-in
install_plugin $wpPath
install_plugins $wpPath
# Generates the openSSL certificates
generate_sslcerts $dnsSite
# Generate the text
generate_text_file $dnsSite $wpAdminUser $wpAdminPassword $dbIP $wpDbUserId $wpDbUserPass
}
install_wordpress
if [ "$cmsApplication" = "WordPress" ]; then
install_wordpress_application
fi
}