Update 'NGINX-Installer.sh'

This commit is contained in:
2018-09-07 11:51:13 +00:00
parent aaa91b523f
commit 346584a160

View File

@@ -347,7 +347,7 @@ systemctl restart php7.2-fpm.service
# WP - INSTALL #
#-------------------#
if [$wordpress = 1]
if [ $wordpress = 1 ]
then
db_name="wp_1"
db_user="wp_1"
@@ -361,7 +361,7 @@ if [$wordpress = 1]
cp -a /tmp/wordpress/. /var/www/"$domain"/html
chown -R www-data:www-data /var/www/"$domain"/html
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)
cat <<EOF > /var/www/"$domain"/html/wp-config.php
cat <<EOF > /var/www/"$domain"/html/wp-config.php
<?php
define('DB_NAME', '$db_name');
define('DB_USER', '$db_user');