From a975f6c85bf10c43fc3259432e6b39962d3ae6a4 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 17 Feb 2017 18:36:31 +0100 Subject: [PATCH] [Done] updated format for `machine.secret` -> current:ttl:next --- clone/clone | 12 ++++++------ clone/clone.conf | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/clone/clone b/clone/clone index db87a60..a6bf1fe 100755 --- a/clone/clone +++ b/clone/clone @@ -329,12 +329,12 @@ step9(){ # (2) Create default configuration files # echo " (.) Create default configuration/log files"; - echo $MACHINE_STATE | sudo tee /mnt/home/sats/satsd/conf/machine.state > /dev/null; - echo $API_URL | sudo tee /mnt/home/sats/satsd/conf/api.url > /dev/null; - echo $MACHINE_BRANCH | sudo tee /mnt/home/sats/satsd/conf/machine.branch > /dev/null; - echo $MACHINE_ID | sudo tee /mnt/home/sats/satsd/conf/machine.id > /dev/null; - echo "" | sudo tee /mnt/home/sats/satsd/conf/auth.list > /dev/null; - echo "$MACHINE_SECRET:500" | sudo tee /mnt/home/sats/satsd/conf/machine.secret > /dev/null; + echo $MACHINE_STATE | sudo tee /mnt/home/sats/satsd/conf/machine.state > /dev/null; + echo $API_URL | sudo tee /mnt/home/sats/satsd/conf/api.url > /dev/null; + echo $MACHINE_BRANCH | sudo tee /mnt/home/sats/satsd/conf/machine.branch > /dev/null; + echo $MACHINE_ID | sudo tee /mnt/home/sats/satsd/conf/machine.id > /dev/null; + echo "" | sudo tee /mnt/home/sats/satsd/conf/auth.list > /dev/null; + echo "$MACHINE_SECRET:500:$NEXT_SECRET" | sudo tee /mnt/home/sats/satsd/conf/machine.secret > /dev/null; # (3) Set up SATS botting script # diff --git a/clone/clone.conf b/clone/clone.conf index 25d10ce..1cffa8b 100755 --- a/clone/clone.conf +++ b/clone/clone.conf @@ -18,3 +18,4 @@ export MACHINE_BRANCH="1.0"; export MACHINE_STATE="STOP"; export API_URL="http://192.168.0.43/logauth/api/machineDefault/sync/"; export MACHINE_SECRET=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 250); +export NEXT _SECRET=$(tr -dc A-Za-z0-9_ < /dev/urandom | head -c 250);