diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-08 12:16:15 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-08 12:16:15 +0100 |
commit | 7b3fe2cc608928df3b885168a0676a771f7bc7be (patch) | |
tree | 9becf7a1061ce0e13927d6af168b554a1940bad6 /remote-install.sh | |
parent | 63fc8e14be5e450df8ccc18fe76e02c5f0827660 (diff) |
Version 1.17; fix build and upload for distributionsv1.17
Diffstat (limited to 'remote-install.sh')
-rwxr-xr-x | remote-install.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/remote-install.sh b/remote-install.sh new file mode 100755 index 0000000..69d24e4 --- /dev/null +++ b/remote-install.sh @@ -0,0 +1,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 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 |