diff options
-rwxr-xr-x | scripts/client-build.sh | 21 | ||||
-rwxr-xr-x | scripts/client-install.sh | 9 |
2 files changed, 30 insertions, 0 deletions
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 |