Update 'Apache-Installer.sh'
This commit is contained in:
@@ -150,7 +150,7 @@ systemctl restart apache2
|
|||||||
# WP - INSTALL #
|
# WP - INSTALL #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
if [$wordpress = 1]
|
if [ $wordpress = 1 ]
|
||||||
then
|
then
|
||||||
db_name="wp_1"
|
db_name="wp_1"
|
||||||
db_user="wp_1"
|
db_user="wp_1"
|
||||||
@@ -164,7 +164,7 @@ if [$wordpress = 1]
|
|||||||
cp -a /tmp/wordpress/. /var/www/"$domain"/public_html
|
cp -a /tmp/wordpress/. /var/www/"$domain"/public_html
|
||||||
chown -R www-data:www-data /var/www/"$domain"/public_html
|
chown -R www-data:www-data /var/www/"$domain"/public_html
|
||||||
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)
|
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)
|
||||||
cat <<EOF > /var/www/"$domain"/public_html/wp-config.php
|
cat <<EOF > /var/www/"$domain"/public_html/wp-config.php
|
||||||
<?php
|
<?php
|
||||||
define('DB_NAME', '$db_name');
|
define('DB_NAME', '$db_name');
|
||||||
define('DB_USER', '$db_user');
|
define('DB_USER', '$db_user');
|
||||||
|
|||||||
Reference in New Issue
Block a user