Skip to content

Instantly share code, notes, and snippets.

@Trott
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save Trott/0e1230dee081c3c4bc7a to your computer and use it in GitHub Desktop.

Select an option

Save Trott/0e1230dee081c3c4bc7a to your computer and use it in GitHub Desktop.
Migrating from solr-security-proxy to solr-proxy for IDDL

Install solr-proxy

sudo env "PATH=$PATH" npm install -g solr-proxy

Edit /etc/init.d/solr-proxy

There's a bug in the current init script that prevents the proxy from stopping. Add tobacco to the end of the line that stops the proxy. In other words, change this:

runuser -c "$DAEMON stop $SERVER"

...to this:

runuser -c "$DAEMON stop $SERVER" tobacco

Stop the old proxy

sudo /sbin/service solr-proxy stop

Edit /etc/init.d/solr-proxy again

Now we want to use the new proxy executable rather than the old one.

Change this:

SERVER="/usr/local/bin/solr-security-proxy"

...to this:

SERVER="/usr/local/bin/solr-proxy"

Uninstall the old proxy

sudo env "PATH=$PATH" npm uninstall -g solr-security-proxy

Start the new proxy

sudo /sbin/service solr-proxy start

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