Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BAProductions/51d11468e494a8e40500154490b53c5d to your computer and use it in GitHub Desktop.
Save BAProductions/51d11468e494a8e40500154490b53c5d 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment