Last active
December 5, 2018 19:45
-
-
Save gogl92/ba28b506283bd013a6fce7ff733f6e81 to your computer and use it in GitHub Desktop.
Bitnami Wordpress with SSL certificate automation
This file contains 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'