Update 'NGINX-Installer.sh'
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user