Update 'CMS/wordpress/conf.sh'

This commit is contained in:
Bram Prieshof
2020-03-11 12:27:30 +01:00
parent 9d53a89776
commit 788580b8aa

View File

@@ -11,6 +11,9 @@ mysql -u root -p"$password" -e "CREATE USER '"$db_user"'@'localhost' IDENTIFIED
mysql -u root -p"$password" -e "GRANT ALL ON "$db_name".* TO '"$db_user"'@'localhost';"
mysql -u root -p"$password" -e "FLUSH PRIVILEGES;"
#Creating Folder
mkdir -p /var/www/"$domain"/html
#Getting WordPress
wget https://wordpress.org/latest.tar.gz -O /tmp/wp.tar.gz
tar -C /var/www/"$domain"/html -xzf /tmp/wp.tar.gz --strip 1