ppp-sync/parrot-steam.sh
Ward from fusion-voyager-3 d139afd4da
Some checks failed
Process Steam Powered Repository (Parrot) / build (push) Successful in 53s
Process Intel Official Repository (Pigeon) / build (push) Failing after 51s
Process Radeon ROCm Repository (Raven) / build (push) Successful in 6m12s
Fix perms
2024-07-31 17:56:49 +03:00

20 lines
794 B
Bash
Executable File

#! /bin/bash
set -e
# Give correct perms to Pika Package Processor
chmod 755 ./ppp
# External steam-powered mirror
mkdir -p ./output
./ppp https://ppa.pika-os.com/dists/pika/parrot/binary-i386/Packages https://repo.steampowered.com/steam/dists/stable/steam/binary-i386/Packages https://repo.steampowered.com/steam/ ./output/
./ppp https://ppa.pika-os.com/dists/pika/parrot/binary-amd64/Packages https://repo.steampowered.com/steam/dists/stable/steam/binary-amd64/Packages https://repo.steampowered.com/steam/ ./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/parrot-incoming/