summaryrefslogtreecommitdiffhomepage
path: root/remote-install.sh
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-07 19:03:52 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-07 19:03:52 +0100
commite7dd0b98770ee0c88c1ea976d9e9a6d3979782f7 (patch)
tree74e898f03a69b9d5e129af1df0b790e0058cbb7b /remote-install.sh
parentac54d689b48a6f97ab592230d74ee6bd64fc1bd5 (diff)
Version 1.1; added remote-install.sh for "make upload"v1.1
Diffstat (limited to 'remote-install.sh')
-rwxr-xr-xremote-install.sh24
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