Update all syncs to use aptly

This commit is contained in:
ferrreo 2023-09-06 19:13:45 +01:00
parent 259cfb3249
commit 9da217a997
11 changed files with 66 additions and 232 deletions

View File

@ -44,26 +44,11 @@ done
cd ../ cd ../
mv -v ./output-tmp/*-fixed.deb ./output/ mv -v ./output-tmp/*-fixed.deb ./output/
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-amdgpu /srv/www/incoming/'
# Check if the amdgpu component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep amdgpu 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: amdgpu#" ./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 package to the repo
reprepro -C amdgpu -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -88,26 +88,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -57,27 +57,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/
exit 0

View File

@ -39,26 +39,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -46,26 +46,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -46,26 +46,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -46,26 +46,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -35,26 +35,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -89,26 +89,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

View File

@ -36,26 +36,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-external /srv/www/incoming/'
# Check if the external component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep external 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: external#" ./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 package to the repo
reprepro -C external -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/

27
rocm.sh
View File

@ -37,26 +37,11 @@ cd ../
mkdir -p ./output mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; find . -name \*.deb -exec cp -vf {} ./output \;
# Sign the packages # send debs to server
dpkg-sig --sign builder ./output/*.deb 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-rocm /srv/www/incoming/'
# Check if the rocm component exists # publish the repo
if cat ./output/repo/conf/distributions | grep Components: | grep rocm 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: rocm#" ./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 package to the repo
reprepro -C rocm -V --basedir ./output/repo/ includedeb lunar ./output/*.deb
# Push the updated ppa repo to the server
rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/