Skip to content

Instantly share code, notes, and snippets.

@melvinsoft
Created October 4, 2017 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melvinsoft/dd6700ed5067dfc81c049dd75d7206b2 to your computer and use it in GitHub Desktop.
Save melvinsoft/dd6700ed5067dfc81c049dd75d7206b2 to your computer and use it in GitHub Desktop.
+ main
+ set +e
+ apt-get -V
+ local ec=0
+ set -e
+ '[' 0 -eq 0 ']'
+ debian_patch
+ echo 'Apply path for Debian'
+ sudo apt-get clean
+ sudo mv /etc/apt/sources.list /tmp/sources.list.bk
+ sudo sh -c 'echo "deb http://http.us.debian.org/debian wheezy main contrib non-free" >> /etc/apt/sources.list'
+ sudo sh -c 'echo "deb http://security.debian.org wheezy/updates main contrib non-free" >> /etc/apt/sources.list'
+ sudo apt-get update -y
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010
+ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --only-upgrade libgcc1 bash
Checking for services that may need to be restarted...
Checking init scripts...
Checking for services that may need to be restarted...
Checking init scripts...
Restarting services possibly affected by the upgrade:
mysql: restarting...done.
cron: restarting...done.
Services restarted successfully.
Generating locales (this might take a while)...
en_US.UTF-8... done
Generation complete.
+ sudo mv /tmp/sources.list.bk /etc/apt/sources.list
+ sudo apt-get clean
+ sudo /etc/init.d/ssh restart
+ sudo mv /etc/apt/sources.list /tmp/sources.list.bk
+ sudo sh -c 'echo "deb http://security.debian.org squeeze/updates main contrib non-free" > /etc/apt/sources.list'
+ mkdir /mnt/tmp/packages/
+ sudo -u hadoop bash -c '. /home/hadoop/.bashrc && hadoop dfs -get s3://edx-analytics-public/packages/* /mnt/tmp/packages/'
17/10/04 21:31:38 INFO s3native.NativeS3FileSystem: Created AmazonS3 with InstanceProfileCredentialsProvider
17/10/04 21:31:39 INFO s3native.NativeS3FileSystem: listStatus /packages
get: Status Code: 403, AWS Service: Amazon S3, AWS Request ID: 0DA58234BDD4DED0, AWS Error Code: null, AWS Error Message: Forbidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment