SparkLabs Forum.

Community Help.


Setting License key information via shell script

Hello,

I'm trying to figure out if it's possible to setup our corp license using shell scripts. We use a tool that to deploy our computers that we can't upload custom packages to yet (though once that rolls out it seems like the more stable option). I haven't seen any documents or other forum topics that seem to suggest this is possible.

Any help would be awesome, thanks.
Hi zander,

There is no way to directly enter license details, however if you have an already registered version of Viscosity you can extract the license details like so:

Code: Select all

defaults read com.viscosityvpn.Viscosity License


And then deploy it to other machines like so:

Code: Select all

defaults write com.viscosityvpn.Viscosity License <output_from_prior_command>


Cheers,
James
Great James I'll give that a try!
James that works a treat!

One more question I find it super weird how you handle the preference for reconnect on wake, you literally remove it from the preference when its on, and add a line to the plist when it's off is there a reason for this?
Hi zander,

Great to hear.

Preferences storage is managed by the system (NSUserDefaults). Viscosity is just setting a boolean to true/false for the option - how it stores it is up to Apple's Defaults database.

Cheers,
James
5 posts Page 1 of 1

Copyright © 2016 SparkLabs Pty Ltd. All Rights Reserved. Privacy Policy