#!/bin/bash passphrase="$(pwgen -1 -n 20)" cat >keyparms < /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