how to get pastebin to work on wordpress #!/bin/bash # # WordPress activation script # # This script will configure Apache with the domain # provided by the user and offer the option to set up # LetsEncrypt as well. # Enable WordPress on first login if [[ -d /var/www/wordpress ]] then how to get pastebin to work on wordpress PasteShr how to get pastebin to work on wordpress mv /var/www/html /var/www/html.old mv /var/www/wordpress /var/www/html fi chown -Rf www-data:www-data /var/www/html # if applicable, configure wordpress to use mysql dbaas if [ -f "/root/.digitalocean_dbaas_credentials" ] && [ "$(sed -n "s/^db_protocol=\"\(.*\)\"$/\1/p" /root/.digitalocean_dbaas_credentials)" = "mysql" ]; then # grab all the data from the password file username=$(sed -n "s/^db_username=\"\(.*\)\"$/\1/p" /root/.digitalocean_dbaas_credentials) password=$(sed -n "s/^db_password=\"\(.*\)\"$/\1/p" /root/.digitalocean_dbaas_credentials) how to get pastebin to work on wordpress How to use it? how to get pastebin to work on wordpress host=$(sed -n "s/^db_host=\"\(.*\)\"$/\1/p" /root/.digitalocean_dbaas_credentials) port=$(sed -n "s/^db_port=\"\(.*\)\"$/\1/p" /root/.digitalocean_dbaas_credentials) database=$(sed -n "s/^db_database=\"\(.*\)\"$/\1/p" /root/.digitalocean_dbaas_credentials) # update the wp-config.php with stored credentials sed -i "s/'DB_USER', '.*'/'DB_USER', '$username'/g" /var/www/html/wp-config.php; sed -i "s/'DB_NAME', '.*'/'DB_NAME', '$database'/g" /var/www/html/wp-config.php; sed -i "s/'DB_PASSWORD', '.*'/'DB_PASSWORD', '$password'/g" /var/www/html/wp-config.php; sed -i "s/'DB_HOST', '.*'/'DB_HOST', '$host:$port'/g" /var/www/html/wp-config.php; how to get pastebin to work on wordpress How to get it? how to get pastebin to work on wordpress # add required SSL flag cat >> /var/www/html/wp-config.php <