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 | |
| # | |
| # USAGE: | |
| # [ -f /usr/bin/curl ] || apt-get -y install curl | |
| # curl -sSL https://gist.githubusercontent.com/micw/987af53361c1d7de1369/raw/ | /bin/bash | |
| set -e | |
| if [ ! -f /etc/apt/sources.list.d/wheezy-backports.list ]; then | |
| echo "Adding wheezy backport repository" |
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 | |
| # This script can be used as wrapper for rsync in authorized_keys. It restricts rsync the following way: | |
| # - restrict target directory to be under /backups/backup-rsync-push/${1}/target/ where $1 is an argument from authorized_keys | |
| # - restrict target directory to be exactly 1 level below this directory | |
| # - restrict flags | |
| # - restrict arguments | |
| # - force --fake-super argument | |
| err() { |
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 | |
| set -e | |
| if [ $# -eq 0 ]; then | |
| echo "USAGE: $0 plugin1 plugin2 ..." | |
| exit 1 | |
| fi | |
| plugin_dir=/var/lib/jenkins/plugins |
NewerOlder