Skip to content

Instantly share code, notes, and snippets.

@patgmac
Created July 26, 2014 18:08
Show Gist options
  • Select an option

  • Save patgmac/34b2c34fcff2c7b756ab to your computer and use it in GitHub Desktop.

Select an option

Save patgmac/34b2c34fcff2c7b756ab to your computer and use it in GitHub Desktop.
By default these URLs are disabled. They need to be enabled by an Admin
side server pref key
Key: AllowURLSDPackageImport
Type: Boolean
Dafault: false
This implemented via a URL schema. To import a package use
lanrevadmin://importsoftwarepackage?packagepath=/tmp/mypackage.amsdpackages
&committoserver=1
lanrevadmin://importsoftwarepackage?packagepath=/tmp/mypackage.amsdpackages
packagepath is the path to the SD package. The path has to be URL encoded.
If the committoserver is not specified then no commit will happen after
the import. A manual commit can be done by this URL
lanrevadmin://commitsoftwarepackagechanges
@tburgin

tburgin commented Jul 26, 2014

Copy link
Copy Markdown

Run this to set the option

defaults write ~/Library/Preferences/com.poleposition-sw.lanrev_admin AllowURLSDPackageImport -bool true

Run this to verify it is in there as a boolean

defaults read ~/Library/Preferences/com.poleposition-sw.lanrev_admin AllowURLSDPackageImport

This should return 1

ghost commented Jul 29, 2014

Copy link
Copy Markdown

I believe the change needs to be made to the admin console prefs rather than the server prefs: ~/Library/Preferences/com.poleposition-sw.lanrev_admin.plist

The URL handler mentioned above is making a call to the admin console rather then the server itself so this setting should go into the admin console prefs rather than the server prefs.

@tburgin

tburgin commented Jul 29, 2014

Copy link
Copy Markdown

Good call. That works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment