summaryrefslogtreecommitdiffhomepage
path: root/remote-install.sh
blob: 50b0c60b722fcbe82d1b2fa2f61979abd847827c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#
# Script to be run on target server to install *.deb and *.tgz
#

set -e

if [ "$#" != "2" ] ; then
	echo "Usage: remote-install.sh <ProjectName> <Version>"
	exit 0
fi

PROJECTNAME=$1
VERSION=$2
DISTROS="debian11 debian12 ubuntu2204 ubuntu2210"

cd /var/www/reichwein.it-debian

for i in $DISTROS; do
  echo "Installing ${PROJECTNAME} for $i ..."
  reprepro -C $i --ignore=wrongdistribution include stable /home/rr/result/$i/${PROJECTNAME}_${VERSION}_amd64.changes
  echo "Copying ${PROJECTNAME} for $i to direct download location ..."
  #cp /home/rr/result/$i/${PROJECTNAME}_${VERSION}_*.deb /var/www/reichwein.it-download/$i/
done