Cleaning repository

This commit is contained in:
2018-05-16 09:59:19 +02:00
parent a4bdd2f1dc
commit be04830f1b
7 changed files with 14 additions and 5 deletions

24
srv/aptly.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
cat >keyparms <<EOF
%echo Generating a basic OpenPGP key
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
Subkey-Length: 1024
Name-Real: $USER_NAME
Name-Comment: dev deb repo
Name-Email: $USER_EMAIL
Expire-Date: 0
Passphrase: $PASSPHRASE
%commit
%echo done
EOF
export PINENTRY_USER_DATA="USE_CURSES=1"
gpg1 --gen-key --batch keyparms
gpg1 --export --armor > /signing-key/dev.pubkey
aptly repo create --component="main" --distribution="ubuntu" dev
aptly repo add dev /packages
aptly publish repo --batch --passphrase="$PASSPHRASE" dev
aptly serve