Skip to content

Commit

Permalink
Changed setup files (please reinit and add credentials!)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahype committed Oct 30, 2018
1 parent 295736c commit 2b8ffd4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
6 changes: 2 additions & 4 deletions includes/db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ _db_import() {
exit
fi

db_conf=${CONF_DIR}"/db.conf"
server_conf=${CONF_DIR}"/server.conf"
devops_conf=${CONF_DIR}"/devops.conf"

source ${db_conf}
source ${server_conf}
source ${devops_conf}

read -p "This will drop all database data of the local installation and will replace it by new data. Are you really sure? (y/N) " i_am_sure

Expand Down
4 changes: 1 addition & 3 deletions includes/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ function _copy_files {
exit 1
fi

cp "${CONFIG_TEMPLATE_DIR}/db.conf" "${CONFIG_DIR}/db.conf"
cp "${CONFIG_TEMPLATE_DIR}/ftp.conf" "${CONFIG_DIR}/ftp.conf"
cp "${CONFIG_TEMPLATE_DIR}/server.conf" "${CONFIG_DIR}/server.conf"
cp "${CONFIG_TEMPLATE_DIR}/devops.conf" "${CONFIG_DIR}/devops.conf"

mkdir -p "${CONFIG_DIR}/nginx"
cp "${CONFIG_TEMPLATE_DIR}/nginx/default.conf" "${CONFIG_DIR}/nginx/default.conf"
Expand Down
24 changes: 24 additions & 0 deletions templates/conf/devops.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

##
# Host
#
# Setup your host data.
##

REMOTE_HOST=yourdomain.tld
REMOTE_URL=https://${REMOTE_HOST}

LOCAL_HOST=localhost
LOCAL_URL=http://localhost

##
# Database
#
# Setup your local database config.
##

DB_LOCAL_USER=root
DB_LOCAL_PASS=root
DB_LOCAL_HOST=localhost
DB_LOCAL_NAME=website
15 changes: 0 additions & 15 deletions templates/conf/server.conf

This file was deleted.

0 comments on commit 2b8ffd4

Please sign in to comment.