Skip to content

Instantly share code, notes, and snippets.

@ap4y
ap4y / qgoverride
Created December 21, 2015 21:23 — forked from timrwilliams/qgoverride
Override QuotaGuard Static Socksify env variable setup with your own socks.conf file
#!/bin/bash
# Script inspired by and derived from Proximo (https://github.com/pirateradio/proximo-stacklet)
# Usage ./qgoverride rails s
if [ "${QUOTAGUARDSTATIC_URL}" == "" ]; then
echo "No QUOTAGUARDSTATIC_URL env variable found. Have you installed QuotaGuard Static?"
echo "If using Heroku:"
echo " heroku addons:add QuotaGuardstatic:test"
echo "If using another platform sign-up at quotaguard.com and follow documentation to manually set variable"
exit 2