aptly is pogly

This commit is contained in:
ferrreo 2023-09-06 18:33:22 +01:00
parent 698bdd5eb1
commit 998fa221c2

View File

@ -40,16 +40,16 @@ echo "Getting ubuntu main pool 64bit"
# echo "Getting ubuntu universe pool 64bit"
# ../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./incoming
if [ $(ls ./incoming/ | wc -l) -lt 1 ]; then
echo "Repos are synced"
exit 0
fi
# if [ $(ls ./incoming | wc -l) -lt 1 ]; then
# echo "Repos are synced"
# exit 0
# fi
# send debs to server
rsync -azP ./incoming/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming'
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish repo -batch -skip-contents -force-overwrite -component=,,,, pika-a