[Update] Added configurable file content 'warehouse.token'
This commit is contained in:
parent
0b90598df2
commit
41fda94fce
|
@ -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;
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue