add mantic to ubuntu sync

This commit is contained in:
ferrreo 2023-09-18 16:06:28 +01:00
parent 435b491ecf
commit 2462b7eab3
7 changed files with 232 additions and 63 deletions

View File

@ -1,61 +1,22 @@
#! /bin/bash #! /bin/bash
set -e set -e
REPOS_EMPTY=0
# Give correct perms to Apt version checker # Give correct perms to Apt version checker
chmod 755 ./ppp chmod 755 ./ppp
# Extranal XtraDEB PPA MIRROR # Extranal XtraDEB PPA MIRROR
mkdir -p ./output/external
cd ./output/external
# temp
apt update
apt upgrade -y
# end of temp
#Get rid of Pika sources to prevent conflicts
rm -rf /etc/apt/sources.list.d/pika*
rm -rf /etc/apt/preferences.d/*pika*
# Get Extranal Wasta Cinnamon PPA pool
echo 'deb [arch=amd64 trusted=yes] https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu jammy main' | sudo tee /etc/apt/sources.list.d/external.list
apt update -y --allow-unauthenticated
WASTA_PPP=$(../../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/dists/jammy/main/binary-amd64/Packages.xz | tr ' ' '\n' | grep -E 'mintinstall|warpinator|webapp-manager|mint-common|mint-translations' | tr '\n' ' ')
if [ ! -z "$WASTA_PPP" ]
then
apt download $WASTA_PPP -y --target-release 'o=LP-PPA-wasta-linux-cinnamon-testing'
else
echo "Wasta Repos are synced"
export REPOS_EMPTY=1
fi
rm -rf /etc/apt/sources.list.d/external.list
# Get Extranal Papirus PPA pool
echo 'deb [arch=amd64 trusted=yes] https://ppa.launchpadcontent.net/papirus/papirus/ubuntu lunar main' | sudo tee /etc/apt/sources.list.d/external.list
apt update -y --allow-unauthenticated
PAPIRUS_PPP=$(../../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/dists/lunar/main/binary-amd64/Packages.xz)
if [ ! -z "$PAPIRUS_PPP" ]
then
apt download $PAPIRUS_PPP -y --target-release 'o=LP-PPA-papirus-papirus'
else
echo "Papirus Repos are synced"
if [[ $REPOS_EMPTY == 1 ]]
then
exit 0
fi
fi
# Return to Extranal MIRROR
cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; cd ./output
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/dists/jammy/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/ ./ "mintinstall,warpinator,webapp-manager,mint-common,mint-translations"
../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Lunar repos are synced"
fi
# send debs to server # send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/ rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
@ -64,4 +25,28 @@ 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-external /srv/www/incoming/' ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
# publish the repo # 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:'
# Extranal XtraDEB PPA MIRROR
mkdir -p ./manticoutput
cd ./manticoutput
../ppp https://ppa.pika-os.com/dists/mantic/external/binary-amd64/Packages https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/dists/jammy/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/wasta-linux/cinnamon-testing/ubuntu/ ./ "mintinstall,warpinator,webapp-manager,mint-common,mint-translations"
../ppp https://ppa.pika-os.com/dists/mantic/external/binary-amd64/Packages https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/dists/lunar/main/binary-amd64/Packages.xz https://ppa.launchpadcontent.net/papirus/papirus/ubuntu/ ./
cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Mantic 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-external-mantic /srv/www/incoming/'
# publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite mantic filesystem:pikarepo:'

BIN
ppp

Binary file not shown.

View File

@ -43,8 +43,7 @@ echo "Getting ubuntu universe pool 64bit"
cd ../ cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Repos are synced" echo "Lunar repos are synced"
exit 0
fi fi
# send debs to server # send debs to server
@ -55,3 +54,50 @@ ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-
# publish the repo # 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-backports/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-backports/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-backports/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-backports/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-backports/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-backports/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-backports/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-backports/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Mantic 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:'

View File

@ -43,8 +43,7 @@ echo "Getting ubuntu universe pool 64bit"
cd ../ cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Repos are synced" echo "Lunar repos are synced"
exit 0
fi fi
# send debs to server # send debs to server
@ -54,4 +53,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/' ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
# publish the repo # 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-proposed/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-proposed/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-proposed/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-proposed/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-proposed/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-proposed/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-proposed/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-proposed/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Mantic 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:'

View File

@ -43,8 +43,7 @@ echo "Getting ubuntu universe pool 64bit"
cd ../ cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Repos are synced" echo "Lunar Repos are synced"
exit 0
fi fi
# send debs to server # send debs to server
@ -54,4 +53,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/' ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
# publish the repo # 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-security/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-security/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-security/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-security/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-security/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-security/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-security/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-security/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Mantic 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:'

View File

@ -43,8 +43,7 @@ echo "Getting ubuntu universe pool 64bit"
cd ../ cd ../
if [ $(ls ./output/ | wc -l) -lt 1 ]; then if [ $(ls ./output/ | wc -l) -lt 1 ]; then
echo "Repos are synced" echo "Lunar repos are synced"
exit 0
fi fi
# send debs to server # send debs to server
@ -54,4 +53,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/' ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
# publish the repo # 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-updates/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-updates/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-updates/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-updates/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-updates/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-updates/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-updates/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-updates/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Mantic 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:'

View File

@ -89,7 +89,7 @@ echo "Getting ubuntu universe pool 64bit"
cd ../ cd ../
if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Repos are synced" echo "Mantic repos are synced"
exit 0 exit 0
fi fi