added wordpress version
This commit is contained in:
Родитель
bb76705d2d
Коммит
fe32a4b274
|
@ -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
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче