add mantic to ubuntu sync

This commit is contained in:
ferrreo 2023-09-18 15:19:39 +01:00
parent 497885a5ea
commit 0739525894

View File

@ -54,4 +54,51 @@ rsync -azP ./output/ ferreo@direct.pika-os.com:/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 update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
# output folders
mkdir -p ./manticoutput
cd ./manticoutput
apt install wget rsync ssh -y
# Get ubuntu main pool
echo "Getting ubuntu main pool 32bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
echo "Getting ubuntu main pool 64bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
# Get ubuntu multiverse pool
echo "Getting ubuntu multiverse pool 32bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
echo "Getting ubuntu multiverse pool 64bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
# Get ubuntu restricted pool
echo "Getting ubuntu restricted pool 32bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
echo "Getting ubuntu restricted pool 64bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
# Get ubuntu universe pool
echo "Getting ubuntu universe pool 32bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
echo "Getting ubuntu universe pool 64bit"
../ppp https://ppa.pika-os.com/dists/mantic/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/mantic/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Repos are synced"
exit 0
fi
# send debs to server
rsync -azP ./manticoutput/ 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-mantic /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite mantic filesystem:pikarepo:'