Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#----------------------------------------------------------#
# settings #
#----------------------------------------------------------#
#text colors
redtext() { echo "$(tput setaf 1)$*$(tput setaf 9)"; }
greentext() { echo "$(tput setaf 2)$*$(tput setaf 9)"; }
yellowtext() { echo "$(tput setaf 3)$*$(tput setaf 9)"; }
@CamdenJaxx
CamdenJaxx / create_wp.sh
Last active April 27, 2019 03:25 — forked from luisintosh/create_wp.sh
Create a fresh Wordpress installation within a VestaCP environment. Added default .htaccess file with redirect to https by default.
#!/bin/bash
if [ $# -lt 1 ]; then
echo usage: create_wp domain [email]
exit 1
fi
domain=$1
PATH=$PATH:/usr/local/vesta/bin