Skip to content

Instantly share code, notes, and snippets.

@cryptoniteio
Created July 3, 2014 15:17
Show Gist options
  • Select an option

  • Save cryptoniteio/03f02d13e72e829d2f96 to your computer and use it in GitHub Desktop.

Select an option

Save cryptoniteio/03f02d13e72e829d2f96 to your computer and use it in GitHub Desktop.
Script to create source lists from license key.
#!/bin/bash
echo "Please enter your new license key (It is case sensitive):"
read new_key
echo -n "Creating Source Lists"
echo
echo "deb http://data.alienvault.com/feed_etpro_$new_key/ binary/" > /etc/apt/sources.list.d/alienvault4-pro-etpro.list
echo "deb http://data.alienvault.com/alienvault4/ binary/" > /etc/apt/sources.list.d/alienvault4-pro.list
echo "deb http://data.alienvault.com/$new_key/ binary/" >> /etc/apt/sources.list.d/alienvault4-pro.list
echo "deb http://data.alienvault.com/feed_$new_key/ binary/" >> /etc/apt/sources.list.d/alienvault4-pro.list
echo
echo "All Finished!"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment