Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3231d1e174
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.365 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh

if [ -z "$1" ]; then
echo "Usage: ./sign.sh REPO_CODENAME [signing user]">&2
    exit 1
fi

user=""
[ -n "$SUDO_USER" ] &&
    user=$SUDO_USER
[ -n "$2" ] &&
    user=$2

su $user -c "gpg -abs -o ~/Release.gpg /var/repo/apt/dists/$1/Release"
mv ~$user/Release.gpg /var/repo/apt/dists/$1/Release.gpg
chown root:root /var/repo/apt/dists/$1/Release.gpg
Something went wrong with that request. Please try again.