added wordpress version
This commit is contained in:
Родитель
bb76705d2d
Коммит
fe32a4b274
|
@ -230,37 +230,40 @@ do
|
||||||
|
|
||||||
done
|
done
|
||||||
EOF
|
EOF
|
||||||
if [ "$cmsApplication" = "WordPress" ]; then
|
function install_wordpress_application() {
|
||||||
function install_wordpress() {
|
local dnsSite=$siteFQDN
|
||||||
local dnsSite=$siteFQDN
|
local wpTitle=LAMP-WordPress
|
||||||
local wpTitle=LAMP-WordPress
|
local wpAdminUser=admin
|
||||||
local wpAdminUser=admin
|
local wpAdminPassword=$wpAdminPass
|
||||||
local wpAdminPassword=$wpAdminPass
|
local wpAdminEmail=admin@$dnsSite
|
||||||
local wpAdminEmail=admin@$dnsSite
|
local wpPath=/azlamp/html/$dnsSite
|
||||||
local wpPath=/azlamp/html/$dnsSite
|
local wpDbUserId=admin
|
||||||
local wpDbUserId=admin
|
local wpDbUserPass=$wpDbUserPass
|
||||||
local wpDbUserPass=$wpDbUserPass
|
local sshUsername=azureadmin
|
||||||
local sshUsername=azureadmin
|
|
||||||
|
|
||||||
# Creates a Database for CMS application
|
# Creates a Database for CMS application
|
||||||
create_database $dbIP $dbadminloginazure $dbadminpass $applicationDbName $wpDbUserId $wpDbUserPass
|
create_database $dbIP $dbadminloginazure $dbadminpass $applicationDbName $wpDbUserId $wpDbUserPass
|
||||||
# Download the wordpress application compressed file
|
# Download the wordpress application compressed file
|
||||||
# download_wordpress $dnsSite
|
# download_wordpress $dnsSite
|
||||||
download_wordpress_version $dnsSite $wpVersion
|
download_wordpress_version $dnsSite $wpVersion
|
||||||
# Links the data content folder to shared folder.. /azlamp/data
|
# Links the data content folder to shared folder.. /azlamp/data
|
||||||
linking_data_location $dnsSite
|
linking_data_location $dnsSite
|
||||||
# Creates a wp-config file for wordpress
|
# Creates a wp-config file for wordpress
|
||||||
create_wpconfig $dbIP $applicationDbName $dbadminloginazure $dbadminpass $dnsSite
|
create_wpconfig $dbIP $applicationDbName $dbadminloginazure $dbadminpass $dnsSite
|
||||||
# Installs WP-CLI tool
|
# Installs WP-CLI tool
|
||||||
install_wp_cli $sshUsername
|
install_wp_cli $sshUsername
|
||||||
# Install WordPress by using wp-cli commands
|
# Install WordPress by using wp-cli commands
|
||||||
install_wordpress $dnsSite $wpTitle $wpAdminUser $wpAdminPassword $wpAdminEmail $wpPath
|
install_wordpress $dnsSite $wpTitle $wpAdminUser $wpAdminPassword $wpAdminEmail $wpPath
|
||||||
# Install WooCommerce plug-in
|
# Install WooCommerce plug-in
|
||||||
install_plugin $wpPath
|
install_plugins $wpPath
|
||||||
# Generates the openSSL certificates
|
# Generates the openSSL certificates
|
||||||
generate_sslcerts $dnsSite
|
generate_sslcerts $dnsSite
|
||||||
}
|
# Generate the text
|
||||||
install_wordpress
|
generate_text_file $dnsSite $wpAdminUser $wpAdminPassword $dbIP $wpDbUserId $wpDbUserPass
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$cmsApplication" = "WordPress" ]; then
|
||||||
|
install_wordpress_application
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче