2023-08-24 15:46:51 +02:00
|
|
|
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
|
2023-08-24 19:41:42 +02:00
|
|
|
# Give correct perms to Apt version checker
|
|
|
|
chmod 755 ./ppp
|
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
# Get ROCm pool
|
|
|
|
mkdir -p ./output
|
|
|
|
cd ./output
|
2023-08-24 19:32:13 +02:00
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
../ppp https://ppa.pika-os.com/dists/lunar/rocm/binary-amd64/Packages http://repo.radeon.com/rocm/apt/5.7/dists/jammy/main/binary-amd64/Packages http://repo.radeon.com/rocm/apt/5.7/ ./
|
2023-08-24 19:32:13 +02:00
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
cd ../
|
2023-08-24 19:26:03 +02:00
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
|
|
|
|
echo "Lunar repos are synced"
|
2023-09-28 18:57:29 +02:00
|
|
|
exit 0
|
2023-09-28 17:51:18 +02:00
|
|
|
fi
|
2023-08-24 19:41:42 +02:00
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
# send debs to server
|
|
|
|
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/
|
2023-08-24 20:26:18 +02:00
|
|
|
|
2023-09-28 17:51:18 +02:00
|
|
|
# add debs to repo
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/'
|
|
|
|
|
|
|
|
# publish the repo
|
|
|
|
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:'
|
|
|
|
|