From 4643ca0087562376ff8e06f36f88907dc245aa1c Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 20 Jul 2017 08:47:32 +0200 Subject: Added client scripts. --- scripts/client-build.sh | 21 +++++++++++++++++++++ scripts/client-install.sh | 9 +++++++++ 2 files changed, 30 insertions(+) create mode 100755 scripts/client-build.sh create mode 100755 scripts/client-install.sh diff --git a/scripts/client-build.sh b/scripts/client-build.sh new file mode 100755 index 0000000..f2e0fb7 --- /dev/null +++ b/scripts/client-build.sh @@ -0,0 +1,21 @@ +#!/bin/sh -x + +PROJECT_DIR=`cd ../.. ; pwd` + +BUILD_DIR=$HOME/build/pki-client +COMPOSE=$PROJECT_DIR/pki/scripts/compose_pki_core_packages + +mkdir -p $BUILD_DIR +cd $BUILD_DIR + +rm -rf rpmbuild +mkdir -p rpmbuild + +echo $COMPOSE --work-dir $BUILD_DIR/rpmbuild hybrid_rpms + +$COMPOSE --work-dir $BUILD_DIR/rpmbuild --without-server hybrid_rpms + +rm -rf repo +mkdir -p repo +mv `find rpmbuild/RPMS -name *.rpm` repo +createrepo repo diff --git a/scripts/client-install.sh b/scripts/client-install.sh new file mode 100755 index 0000000..5ab156f --- /dev/null +++ b/scripts/client-install.sh @@ -0,0 +1,9 @@ +#!/bin/sh -x + +PROJECT_DIR=`cd ../.. ; pwd` + +BUILD_DIR=$HOME/build/pki-client + +cd $BUILD_DIR/repo + +yum install -y *.rpm -- cgit