aptly is pogly

This commit is contained in:
ferrreo 2023-09-06 18:26:20 +01:00
parent 71a9b00610
commit 698bdd5eb1

View File

@ -40,13 +40,13 @@ 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 ./output/ | wc -l) -lt 1 ]; then
if [ $(ls ./incoming/ | wc -l) -lt 1 ]; then
echo "Repos are synced"
exit 0
fi
# send debs to server
rsync -azP ./output/incoming/ ferreo@direct.pika-os.com:/srv/www/incoming/
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'