From 05a75fc4ca6a1a43f721b7d61feae64e2b865bdf Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sun, 12 Jun 2022 01:42:16 +0200 Subject: [PATCH] Aptly publish as root --- builder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder b/builder index 39246a5..efa22ed 100755 --- a/builder +++ b/builder @@ -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