19 lines
600 B
Bash
Executable File
19 lines
600 B
Bash
Executable File
#! /bin/bash
|
|
set -e
|
|
|
|
# Give correct perms to Pika Package Processor
|
|
chmod 755 ./ppp
|
|
|
|
# External Radeon ROCm mirror
|
|
mkdir -p ./output
|
|
./ppp https://ppa.pika-os.com/dists/pika/raven/binary-amd64/Packages http://repo.radeon.com/rocm/apt/6.1.4/dists/jammy/main/binary-amd64/Packages http://repo.radeon.com/rocm/apt/6.1.4/ ./output/
|
|
|
|
# Check if any updates have been downloaded
|
|
if [ $(ls ./output/ | wc -l) -lt 1 ]; then
|
|
echo "Repos are synced"
|
|
exit 0
|
|
fi
|
|
|
|
# send debs to server
|
|
rsync -azP --include './' --include '*.deb' --exclude '*' ./output/ ferreo@direct.pika-os.com:/srv/www/raven-incoming/
|