[Done] updated format for `machine.secret` -> current:ttl:next

This commit is contained in:
xdrm-brackets 2017-02-17 18:36:31 +01:00
parent 60322fc461
commit a975f6c85b
2 changed files with 7 additions and 6 deletions

View File

@ -334,7 +334,7 @@ step9(){
echo $MACHINE_BRANCH | sudo tee /mnt/home/sats/satsd/conf/machine.branch > /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 $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 "" | 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_SECRET:500:$NEXT_SECRET" | sudo tee /mnt/home/sats/satsd/conf/machine.secret > /dev/null;
# (3) Set up SATS botting script # # (3) Set up SATS botting script #

View File

@ -18,3 +18,4 @@ export MACHINE_BRANCH="1.0";
export MACHINE_STATE="STOP"; export MACHINE_STATE="STOP";
export API_URL="http://192.168.0.43/logauth/api/machineDefault/sync/"; 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 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);