Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Averroes/cef92c97b1e60d4b98edb8963820af06 to your computer and use it in GitHub Desktop.
Save Averroes/cef92c97b1e60d4b98edb8963820af06 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