configure_slackpkg.sh 352 B

123456789101112
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # configure slackpkgmirror
  7. cp /etc/slackpkg/mirrors /etc/slackpkg/mirrors.bak
  8. cat /etc/slackpkg/mirrors | sed -e "s/# http:\/\/mirror.csclub.uwaterloo.ca/ http:\/\/mirror.csclub.uwaterloo.ca/" | tee /etc/slackpkg/mirrors.edited
  9. mv /etc/slackpkg/mirrors.edited /etc/slackpkg/mirrors