Created
July 3, 2014 15:17
-
-
Save cryptoniteio/03f02d13e72e829d2f96 to your computer and use it in GitHub Desktop.
Script to create source lists from license key.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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