Forked from icedman21/install_wordpress_custom_command
Created
August 4, 2018 19:15
-
-
Save BAProductions/51d11468e494a8e40500154490b53c5d to your computer and use it in GitHub Desktop.
Custom Command for Virtualmin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/$user/public_html; | |
pwd; | |
wget http://wordpress.org/latest.zip; | |
unzip latest.zip; | |
mv ./wordpress/* ./ -f; | |
rm wordpress -rf; | |
cp wp-config-sample.php wp-config.php; | |
sed -i 's/database_name_here/'$user'/g' wp-config.php; | |
sed -i 's/username_here/'$user'/g' wp-config.php; | |
sed -i 's/password_here/'$password'/g' wp-config.php; | |
chown $user:$user ./* -R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment