diff options
author | Roland Reichwein <mail@reichwein.it> | 2022-11-04 17:14:09 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2022-11-04 17:14:09 +0100 |
commit | b4cfb3a4d788d999c737d35ff5da632ffd173f7b (patch) | |
tree | 87dfa0d48efe8167b90e4bbe0022666dc0da4f87 /install-webserver.sh | |
parent | b3ffb4151dae56bc6d60c3063b6d731937e3f32d (diff) |
Automated uploads, date handling
Diffstat (limited to 'install-webserver.sh')
-rwxr-xr-x | install-webserver.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/install-webserver.sh b/install-webserver.sh new file mode 100755 index 0000000..9afab7b --- /dev/null +++ b/install-webserver.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Script to be run on webserver to install *.deb and *.tgz +# + +set -e + +if [ "$#" != "1" ] ; then + echo "Usage: install-webserver.sh <Version>" +fi + +VERSION=$1 +DISTROS="debian10 debian11 ubuntu2004 ubuntu2204" + +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 +done |