aptly is pogly
This commit is contained in:
parent
9eb9761035
commit
259cfb3249
@ -5,39 +5,40 @@ set -e
|
|||||||
chmod 755 ./ppp
|
chmod 755 ./ppp
|
||||||
|
|
||||||
# output folders
|
# output folders
|
||||||
mkdir -p ./output/output
|
mkdir -p ./output
|
||||||
cd ./output/output
|
|
||||||
|
cd ./output
|
||||||
|
|
||||||
# temp
|
# temp
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
# end of temp
|
# end of temp
|
||||||
|
|
||||||
apt install dpkg-sig wget rsync ssh reprepro -y
|
apt install dpkg-sig wget rsync ssh -y
|
||||||
|
|
||||||
# Get ubuntu main pool
|
# Get ubuntu main pool
|
||||||
echo "Getting ubuntu main pool 32bit"
|
echo "Getting ubuntu main pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu main pool 64bit"
|
echo "Getting ubuntu main pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu multiverse pool
|
# Get ubuntu multiverse pool
|
||||||
echo "Getting ubuntu multiverse pool 32bit"
|
echo "Getting ubuntu multiverse pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu multiverse pool 64bit"
|
echo "Getting ubuntu multiverse pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu restricted pool
|
# Get ubuntu restricted pool
|
||||||
echo "Getting ubuntu restricted pool 32bit"
|
echo "Getting ubuntu restricted pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu restricted pool 64bit"
|
echo "Getting ubuntu restricted pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu universe pool
|
# Get ubuntu universe pool
|
||||||
echo "Getting ubuntu universe pool 32bit"
|
echo "Getting ubuntu universe pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu universe 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-backports/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-backports/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
@ -46,26 +47,11 @@ echo "Repos are synced"
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sign the packages
|
# send debs to server
|
||||||
../ppp sign ./output/
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||||
|
|
||||||
# Pull down existing ppa repo db files etc
|
# add debs to repo
|
||||||
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
|
||||||
|
|
||||||
# Check if the ubuntu component exists
|
# publish the repo
|
||||||
if cat ./output/repo/conf/distributions | grep Components: | grep ubuntu
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
sed -i "s#Components:#Components: ubuntu#" ./output/repo/conf/distributions
|
|
||||||
fi
|
|
||||||
|
|
||||||
apt remove reprepro -y
|
|
||||||
wget -nv https://launchpad.net/ubuntu/+archive/primary/+files/reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
apt install -y ./reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
|
|
||||||
# Add the new packages to the repo
|
|
||||||
../ppp repoadd ./output/ "--keepunusednewfiles --keepunreferencedfiles -C ubuntu -V --ignore=missingfield --basedir ./output/repo/ includedeb lunar"
|
|
||||||
|
|
||||||
# Push the updated ppa repo to the server
|
|
||||||
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
|
||||||
|
@ -5,39 +5,40 @@ set -e
|
|||||||
chmod 755 ./ppp
|
chmod 755 ./ppp
|
||||||
|
|
||||||
# output folders
|
# output folders
|
||||||
mkdir -p ./output/output
|
mkdir -p ./output
|
||||||
cd ./output/output
|
|
||||||
|
cd ./output
|
||||||
|
|
||||||
# temp
|
# temp
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
# end of temp
|
# end of temp
|
||||||
|
|
||||||
apt install dpkg-sig wget rsync ssh reprepro -y
|
apt install dpkg-sig wget rsync ssh -y
|
||||||
|
|
||||||
# Get ubuntu main pool
|
# Get ubuntu main pool
|
||||||
echo "Getting ubuntu main pool 32bit"
|
echo "Getting ubuntu main pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu main pool 64bit"
|
echo "Getting ubuntu main pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu multiverse pool
|
# Get ubuntu multiverse pool
|
||||||
echo "Getting ubuntu multiverse pool 32bit"
|
echo "Getting ubuntu multiverse pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu multiverse pool 64bit"
|
echo "Getting ubuntu multiverse pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu restricted pool
|
# Get ubuntu restricted pool
|
||||||
echo "Getting ubuntu restricted pool 32bit"
|
echo "Getting ubuntu restricted pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu restricted pool 64bit"
|
echo "Getting ubuntu restricted pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu universe pool
|
# Get ubuntu universe pool
|
||||||
echo "Getting ubuntu universe pool 32bit"
|
echo "Getting ubuntu universe pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu universe 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-proposed/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-proposed/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
@ -46,26 +47,11 @@ echo "Repos are synced"
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sign the packages
|
# send debs to server
|
||||||
../ppp sign ./output/
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||||
|
|
||||||
# Pull down existing ppa repo db files etc
|
# add debs to repo
|
||||||
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
|
||||||
|
|
||||||
# Check if the ubuntu component exists
|
# publish the repo
|
||||||
if cat ./output/repo/conf/distributions | grep Components: | grep ubuntu
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
sed -i "s#Components:#Components: ubuntu#" ./output/repo/conf/distributions
|
|
||||||
fi
|
|
||||||
|
|
||||||
apt remove reprepro -y
|
|
||||||
wget -nv https://launchpad.net/ubuntu/+archive/primary/+files/reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
apt install -y ./reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
|
|
||||||
# Add the new packages to the repo
|
|
||||||
../ppp repoadd ./output/ "--keepunusednewfiles --keepunreferencedfiles -C ubuntu -V --ignore=missingfield --basedir ./output/repo/ includedeb lunar"
|
|
||||||
|
|
||||||
# Push the updated ppa repo to the server
|
|
||||||
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
|
@ -5,39 +5,40 @@ set -e
|
|||||||
chmod 755 ./ppp
|
chmod 755 ./ppp
|
||||||
|
|
||||||
# output folders
|
# output folders
|
||||||
mkdir -p ./output/output
|
mkdir -p ./output
|
||||||
cd ./output/output
|
|
||||||
|
cd ./output
|
||||||
|
|
||||||
# temp
|
# temp
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
# end of temp
|
# end of temp
|
||||||
|
|
||||||
apt install dpkg-sig wget rsync ssh reprepro -y
|
apt install dpkg-sig wget rsync ssh -y
|
||||||
|
|
||||||
# Get ubuntu main pool
|
# Get ubuntu main pool
|
||||||
echo "Getting ubuntu main pool 32bit"
|
echo "Getting ubuntu main pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu main pool 64bit"
|
echo "Getting ubuntu main pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu multiverse pool
|
# Get ubuntu multiverse pool
|
||||||
echo "Getting ubuntu multiverse pool 32bit"
|
echo "Getting ubuntu multiverse pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu multiverse pool 64bit"
|
echo "Getting ubuntu multiverse pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu restricted pool
|
# Get ubuntu restricted pool
|
||||||
echo "Getting ubuntu restricted pool 32bit"
|
echo "Getting ubuntu restricted pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu restricted pool 64bit"
|
echo "Getting ubuntu restricted pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu universe pool
|
# Get ubuntu universe pool
|
||||||
echo "Getting ubuntu universe pool 32bit"
|
echo "Getting ubuntu universe pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu universe 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-security/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-security/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
@ -46,26 +47,11 @@ echo "Repos are synced"
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sign the packages
|
# send debs to server
|
||||||
../ppp sign ./output/
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||||
|
|
||||||
# Pull down existing ppa repo db files etc
|
# add debs to repo
|
||||||
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
|
||||||
|
|
||||||
# Check if the ubuntu component exists
|
# publish the repo
|
||||||
if cat ./output/repo/conf/distributions | grep Components: | grep ubuntu
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
sed -i "s#Components:#Components: ubuntu#" ./output/repo/conf/distributions
|
|
||||||
fi
|
|
||||||
|
|
||||||
apt remove reprepro -y
|
|
||||||
wget -nv https://launchpad.net/ubuntu/+archive/primary/+files/reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
apt install -y ./reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
|
|
||||||
# Add the new packages to the repo
|
|
||||||
../ppp repoadd ./output/ "--keepunusednewfiles --keepunreferencedfiles -C ubuntu -V --ignore=missingfield --basedir ./output/repo/ includedeb lunar"
|
|
||||||
|
|
||||||
# Push the updated ppa repo to the server
|
|
||||||
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
|
@ -5,39 +5,40 @@ set -e
|
|||||||
chmod 755 ./ppp
|
chmod 755 ./ppp
|
||||||
|
|
||||||
# output folders
|
# output folders
|
||||||
mkdir -p ./output/output
|
mkdir -p ./output
|
||||||
cd ./output/output
|
|
||||||
|
cd ./output
|
||||||
|
|
||||||
# temp
|
# temp
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
# end of temp
|
# end of temp
|
||||||
|
|
||||||
apt install dpkg-sig wget rsync ssh reprepro -y
|
apt install dpkg-sig wget rsync ssh -y
|
||||||
|
|
||||||
# Get ubuntu main pool
|
# Get ubuntu main pool
|
||||||
echo "Getting ubuntu main pool 32bit"
|
echo "Getting ubuntu main pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/main/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu main pool 64bit"
|
echo "Getting ubuntu main pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu multiverse pool
|
# Get ubuntu multiverse pool
|
||||||
echo "Getting ubuntu multiverse pool 32bit"
|
echo "Getting ubuntu multiverse pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu multiverse pool 64bit"
|
echo "Getting ubuntu multiverse pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu restricted pool
|
# Get ubuntu restricted pool
|
||||||
echo "Getting ubuntu restricted pool 32bit"
|
echo "Getting ubuntu restricted pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu restricted pool 64bit"
|
echo "Getting ubuntu restricted pool 64bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu universe pool
|
# Get ubuntu universe pool
|
||||||
echo "Getting ubuntu universe pool 32bit"
|
echo "Getting ubuntu universe pool 32bit"
|
||||||
../../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
echo "Getting ubuntu universe 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-updates/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar-updates/universe/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
@ -46,26 +47,11 @@ echo "Repos are synced"
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Sign the packages
|
# send debs to server
|
||||||
../ppp sign ./output/
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
||||||
|
|
||||||
# Pull down existing ppa repo db files etc
|
# add debs to repo
|
||||||
rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-ubuntu /srv/www/incoming/'
|
||||||
|
|
||||||
# Check if the ubuntu component exists
|
# publish the repo
|
||||||
if cat ./output/repo/conf/distributions | grep Components: | grep ubuntu
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
|
||||||
then
|
|
||||||
true
|
|
||||||
else
|
|
||||||
sed -i "s#Components:#Components: ubuntu#" ./output/repo/conf/distributions
|
|
||||||
fi
|
|
||||||
|
|
||||||
apt remove reprepro -y
|
|
||||||
wget -nv https://launchpad.net/ubuntu/+archive/primary/+files/reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
apt install -y ./reprepro_5.3.0-1.4_amd64.deb
|
|
||||||
|
|
||||||
# Add the new packages to the repo
|
|
||||||
../ppp repoadd ./output/ "--keepunusednewfiles --keepunreferencedfiles -C ubuntu -V --ignore=missingfield --basedir ./output/repo/ includedeb lunar"
|
|
||||||
|
|
||||||
# Push the updated ppa repo to the server
|
|
||||||
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
|
|
26
ubuntu.sh
26
ubuntu.sh
@ -23,22 +23,22 @@ echo "Getting ubuntu main pool 64bit"
|
|||||||
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/main/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu multiverse pool
|
# Get ubuntu multiverse pool
|
||||||
# echo "Getting ubuntu multiverse pool 32bit"
|
echo "Getting ubuntu multiverse pool 32bit"
|
||||||
# ../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/multiverse/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
# echo "Getting ubuntu multiverse pool 64bit"
|
echo "Getting ubuntu multiverse pool 64bit"
|
||||||
# ../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/multiverse/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu restricted pool
|
# Get ubuntu restricted pool
|
||||||
# echo "Getting ubuntu restricted pool 32bit"
|
echo "Getting ubuntu restricted pool 32bit"
|
||||||
# ../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/restricted/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
# echo "Getting ubuntu restricted pool 64bit"
|
echo "Getting ubuntu restricted pool 64bit"
|
||||||
# ../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-amd64/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/restricted/binary-amd64/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
|
|
||||||
# Get ubuntu universe pool
|
# Get ubuntu universe pool
|
||||||
# echo "Getting ubuntu universe pool 32bit"
|
echo "Getting ubuntu universe pool 32bit"
|
||||||
# ../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
../ppp https://ppa.pika-os.com/dists/lunar/ubuntu/binary-i386/Packages.gz http://archive.ubuntu.com/ubuntu/dists/lunar/universe/binary-i386/Packages.xz http://archive.ubuntu.com/ubuntu/ ./
|
||||||
# echo "Getting ubuntu universe 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/ ./
|
../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/ ./
|
||||||
|
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
@ -54,4 +54,4 @@ 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 repo -batch -skip-contents -force-overwrite -component=,,,, pika-amdgpu pika-external pika-main pika-rocm pika-ubuntu filesystem:pikarepo:'
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
|
Loading…
Reference in New Issue
Block a user