Last active
May 12, 2019 21:01
-
-
Save icedman21/84debb9f8bbedc7efdf8 to your computer and use it in GitHub Desktop.
Custom Command for Virtualmin
This file contains hidden or 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
It seems like a good idea. But I can't find the script after I added the custom command... how do you run it?