Skip to content

Instantly share code, notes, and snippets.

@icedman21
Last active May 12, 2019 21:01
Show Gist options
  • Save icedman21/84debb9f8bbedc7efdf8 to your computer and use it in GitHub Desktop.
Save icedman21/84debb9f8bbedc7efdf8 to your computer and use it in GitHub Desktop.
Custom Command for Virtualmin
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
@icedman21
Copy link
Author

Remember to add user and password paramater.

crop

@mkdizajn
Copy link

mkdizajn commented Sep 1, 2016

Hi @icedman21 thanks for your script,, but as I see it does not add your script to Virtualmin custom Install scripts, that one is for WebMin, right?

@franzzappuccino
Copy link

It seems like a good idea. But I can't find the script after I added the custom command... how do you run it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment