#!/bin/bash
shell='ssh root@java-deptools.fedorainfracloud.org'
activator frontend/rpm:packageBin
$shell '
set -e
systemctl stop java-deptools-frontend.service ||:
dd of=frontend.rpm
dnf install -y frontend.rpm
systemctl start java-deptools-frontend.service' \
    < frontend/target/rpm/RPMS/noarch/java-deptools-frontend-0-1.noarch.rpm

#!/bin/bash
set -e
shell='ssh root@java-deptools.fedorainfracloud.org'
activator core/rpm:packageBin frontend/rpm:packageBin
tar cj {core,frontend}/target/rpm/RPMS/noarch/java-deptools-*-0-1.noarch.rpm \
       ./././././generate-repos.sh | \
$shell '
set -e
tar xj  --strip-components 5
systemctl stop java-deptools-frontend.service ||:
dnf install -y java-deptools-{core,frontend}-0-1.noarch.rpm
rm -f java-deptools-{core,frontend}-0-1.noarch.rpm
mv generate-repos.sh /usr/libexec/
systemctl start java-deptools-frontend.service'

Deploy both core and frontend
Deploy both core and frontend
