Setting License key information via shell script

Got a problem with Viscosity or need help? Ask here!

zander

Posts: 3
Joined: Sat Sep 16, 2017 8:56 am

Post by zander » Sat Sep 16, 2017 9:04 am
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.

James

User avatar
Posts: 1978
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Tue Sep 19, 2017 4:56 pm
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
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

zander

Posts: 3
Joined: Sat Sep 16, 2017 8:56 am

Post by zander » Wed Sep 20, 2017 12:54 am
Great James I'll give that a try!

zander

Posts: 3
Joined: Sat Sep 16, 2017 8:56 am

Post by zander » Thu Sep 28, 2017 7:18 am
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?

James

User avatar
Posts: 1978
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu Sep 28, 2017 11:33 am
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
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
5 posts Page 1 of 1