Aptly publish as root
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Thorsten Spille 2022-06-12 01:42:16 +02:00
parent ec7a4fbbb7
commit 05a75fc4ca

View File

@ -89,10 +89,10 @@ aptly repo add bashclub $build_dir/$deb_package.deb
aptly snapshot create $datetime-bashclub from repo bashclub
if [ $(aptly publish list -raw |wc -l) -gt 0 ]; then
aptly publish drop $(lsb_release -cs) debian
sudo -u root aptly publish drop $(lsb_release -cs) debian
fi
aptly publish snapshot -distribution="$(lsb_release -cs)" $datetime-bashclub debian
sudo -u root aptly publish snapshot -distribution="$(lsb_release -cs)" $datetime-bashclub debian
/bin/systemctl restart aptly.service