This file contains 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 | |
logger "Update Script: Starting..." | |
echo '[*] Refreshing repository cache...' | |
sudo apt-get -qq update -y | |
echo '[*] Repository cache refreshed.' | |
echo '[*] Upgrading all existing packages...' | |
sudo apt-get -qq upgrade -y |
This file contains 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 | |
COOKIE_FILE="cookie.jar" | |
USER="" | |
PASS="" | |
AUTHURL="http://uploaded.net/io/login" | |
FILE=$1 | |
if [ ! -e "$COOKIE_FILE" ] | |
then | |
echo "Cookie not found. Authenticating...." |