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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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 | |
set -e | |
# directory config | |
SRC_ROOT=/tmp | |
SERVICE_ROOT=/lib/systemd/system | |
NGINX_ROOT=/etc/nginx | |
REDIS_ROOT=/etc/redis | |
# versions config |
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 | |
### BINARIES ### | |
TAR="$(which tar)" | |
GZIP="$(which gzip)" | |
MYSQL="$(which mysql)" | |
MYSQLDUMP="$(which mysqldump)" | |
### SYSTEM SETUP ### | |
BACKUP_PARENT_DIR="_PATH_TO_BACKUP_DIRECTORY_" |