From 41fda94fce9ff0fb7210bfc888f43082d1e66026 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 19 Feb 2017 15:52:10 +0100 Subject: [PATCH] [Update] Added configurable file content 'warehouse.token' --- clone/clone | 1 + clone/clone.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/clone/clone b/clone/clone index 7ca1094..8310688 100755 --- a/clone/clone +++ b/clone/clone @@ -341,6 +341,7 @@ step9(){ 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; echo "$UNLOCK_CODE" | sudo tee /mnt/home/sats/satsd/conf/machine.unlock > /dev/null; + echo "$WAREHOUSE_TOKEN" | sudo tee /mnt/home/sats/satsd/conf/warehouse.token > /dev/null; echo "$MACHINE_ID;$UNLOCK_CODE" | tee ./server/created > /dev/null; diff --git a/clone/clone.conf b/clone/clone.conf index 970aabf..7bd007b 100755 --- a/clone/clone.conf +++ b/clone/clone.conf @@ -19,3 +19,4 @@ export API_URL="http://192.168.0.43/logauth/api/machineDefault"; 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); export UNLOCK_CODE=$(tr -dc a-f0-9 < /dev/urandom | head -c 128); +export WAREHOUSE_TOKEN="643405e1004845c2291c244faab192e3ad493b9dec147c8030475794b0f2fa23";