Update external-winehq.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-28 20:58:40 +03:00 committed by GitHub
parent 11cd7de8fc
commit e9729df723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,8 @@ set -e
chmod 755 ./ppp chmod 755 ./ppp
# Extranal WineHQ MIRROR # Extranal WineHQ MIRROR
mkdir -p ./output/external mkdir -p ./manticoutput
cd ./output/external cd ./manticoutput
# temp # temp
apt update apt update
@ -84,16 +84,19 @@ else
exit 0 exit 0
fi fi
# Return to Extranal WineHQ MIRROR
cd ../ cd ../
mkdir -p ./output
find . -name \*.deb -exec cp -vf {} ./output \; if [ $(ls ./manticoutput/ | wc -l) -lt 1 ]; then
echo "Mantic repos are synced"
exit 0
fi
# send debs to server # send debs to server
rsync -azP ./output/ ferreo@direct.pika-os.com:/srv/www/incoming/ rsync -azP ./manticoutput/ ferreo@direct.pika-os.com:/srv/www/incoming/
# add debs to repo # add debs to repo
ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external /srv/www/incoming/' ssh ferreo@direct.pika-os.com 'aptly repo add -force-replace -remove-files pika-external-mantic /srv/www/incoming/'
# publish the repo # publish the repo
ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite lunar filesystem:pikarepo:' ssh ferreo@direct.pika-os.com 'aptly publish update -batch -skip-contents -force-overwrite mantic filesystem:pikarepo:'