#!/bin/bash # # Script to be run on webserver to install *.deb and *.tgz # set -e if [ "$#" != "1" ] ; then echo "Usage: install-webserver.sh " fi VERSION=$1 DISTROS="debian11 ubuntu2204 ubuntu2210" cd /var/www/reichwein.it-debian for i in $DISTROS; do echo "Installing webserver for $i ..." reprepro -C $i --ignore=wrongdistribution include stable /home/rr/result/$i/webserver_${VERSION}_amd64.changes echo "Copying webserver for $i to direct download location ..." cp /home/rr/result/$i/webserver_${VERSION}_*.deb /var/www/reichwein.it-download/$i/ done