Skip to content

Instantly share code, notes, and snippets.

@gogl92
Last active December 5, 2018 19:45
Show Gist options
  • Save gogl92/ba28b506283bd013a6fce7ff733f6e81 to your computer and use it in GitHub Desktop.
Save gogl92/ba28b506283bd013a6fce7ff733f6e81 to your computer and use it in GitHub Desktop.
Bitnami Wordpress with SSL certificate automation
#!/bin/bash
sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1
sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m $2 -d $1 -d $1
cd /home/luisarmando1234/apps/wordpress/htdocs/wp-content/plugins/
sudo wget https://downloads.wordpress.org/plugin/woocommerce.3.4.5.zip
sudo unzip woocommerce.3.4.5.zip
sudo rm woocommerce.3.4.5.zip
@gogl92
Copy link
Author

gogl92 commented Sep 26, 2018

Example
sudo ./woocommerce.sh yourdomain.com yourmail@gmail.com

... or from a remote computer through SSH

gcloud compute ssh user@instance-vm --zone us-central1-f --project google-project-id --command 'wget https://gist.githubusercontent.com/gogl92/ba28b506283bd013a6fce7ff733f6e81/raw/77cdb5ac39c2b89d318df33d923d417130ef8bda/woocommerce.sh && sudo sudo ./woocommerce.sh yourdomain.com yourmail@gmail.com'

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