2017-01-30 09:39:45 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# RESET OUTPUT BUFFER
|
|
|
|
|
|
|
|
# MAIN DIRECTORIES
|
2017-02-23 14:26:13 +00:00
|
|
|
#export ROOT_DIR="/home/sats/satsd";
|
|
|
|
export ROOT_DIR="/home/xdrm-brackets/SANDBOX/sats-local";
|
2017-01-30 09:39:45 +00:00
|
|
|
export LOG_DIR="$ROOT_DIR/log";
|
|
|
|
export DATA_DIR="$ROOT_DIR/data";
|
|
|
|
export CONF_DIR="$ROOT_DIR/conf";
|
2017-02-23 14:26:13 +00:00
|
|
|
#export SOURCE_DIR="$ROOT_DIR/source";
|
|
|
|
export SOURCE_DIR="/home/xdrm-brackets/Desktop/git.xdr/home/xdrm-brackets/Desktop/git.xdrm.io/logauth-sats";
|
2017-01-30 09:39:45 +00:00
|
|
|
export TMP_DIR="$ROOT_DIR/tmp";
|
|
|
|
|
2017-02-20 20:22:42 +00:00
|
|
|
|
2017-01-30 09:39:45 +00:00
|
|
|
# CONFIGURATION FILES
|
|
|
|
export SECRET_CONF="$CONF_DIR/machine.secret";
|
|
|
|
export STATE_CONF="$CONF_DIR/machine.state";
|
|
|
|
export BRANCH_CONF="$CONF_DIR/machine.branch";
|
|
|
|
export ID_CONF="$CONF_DIR/machine.id";
|
|
|
|
export URL_CONF="$CONF_DIR/api.url";
|
2017-02-19 10:19:40 +00:00
|
|
|
export WAREHOUSE_TOK="$CONF_DIR/warehouse.token";
|
2017-02-19 11:31:36 +00:00
|
|
|
export UNLOCK_CODE="$CONF_DIR/machine.unlock";
|
2017-01-30 09:39:45 +00:00
|
|
|
|
2017-02-20 20:22:42 +00:00
|
|
|
export AUTH_CONF="$CONF_DIR/auth.list";
|
|
|
|
export STATES_CONF="$CONF_DIR/states.list";
|
|
|
|
export CHIPS_CONF="$CONF_DIR/chips.list";
|
|
|
|
export ACTIONS_CONF="$CONF_DIR/actions.list";
|
|
|
|
|
|
|
|
|
2017-01-30 09:39:45 +00:00
|
|
|
# LOG FILES
|
2017-02-18 10:05:20 +00:00
|
|
|
export BOOT_LOG="$LOG_DIR/boot.log";
|
|
|
|
export DAEMON_LOG="$LOG_DIR/daemon.log";
|
|
|
|
export INSTALL_LOG="$LOG_DIR/install-source.log";
|
|
|
|
export UPDATE_LOG="$LOG_DIR/update.log";
|
2017-01-30 09:39:45 +00:00
|
|
|
|
2017-02-20 20:22:42 +00:00
|
|
|
|
2017-01-30 09:39:45 +00:00
|
|
|
# DATA FILES
|
2017-02-20 20:22:42 +00:00
|
|
|
export DEFAULT_DATA="$DATA_DIR/mfrc522";
|
|
|
|
|
2017-01-30 09:39:45 +00:00
|
|
|
|
|
|
|
# SETTINGS
|
|
|
|
export SECRET_SIZE=250;
|
|
|
|
|