From 2583520990c877fec5b9f5dbe54e4047cb3c0341 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 20 Jul 2017 08:19:48 +0200 Subject: Updated console scripts. --- scripts/console-build.sh | 2 +- scripts/console-compare.sh | 6 ++++++ scripts/console-download.sh | 4 ++-- scripts/console-install.sh | 2 +- scripts/console-publish.sh | 10 ++++++++++ scripts/console-uninstall.sh | 2 +- 6 files changed, 21 insertions(+), 5 deletions(-) create mode 100755 scripts/console-compare.sh create mode 100755 scripts/console-publish.sh (limited to 'scripts') diff --git a/scripts/console-build.sh b/scripts/console-build.sh index f91eff0..6cdffcc 100755 --- a/scripts/console-build.sh +++ b/scripts/console-build.sh @@ -11,7 +11,7 @@ cd $BUILD_DIR rm -rf rpmbuild mkdir -p rpmbuild -$COMPOSE --work-dir $BUILD_DIR/rpmbuild rpms 2>&1 | tee build.log +$COMPOSE --work-dir $BUILD_DIR/rpmbuild rpms rm -rf repo mkdir -p repo diff --git a/scripts/console-compare.sh b/scripts/console-compare.sh new file mode 100755 index 0000000..0c5a09c --- /dev/null +++ b/scripts/console-compare.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +old=$1 +new=/usr/share/java/pki + +./jar-compare.sh pki-console.jar $old $new diff --git a/scripts/console-download.sh b/scripts/console-download.sh index 77bbd6d..8b4bc86 100755 --- a/scripts/console-download.sh +++ b/scripts/console-download.sh @@ -4,8 +4,8 @@ cd ~/Downloads BASE_URL=http://kojipkgs.fedoraproject.org/packages PACKAGE=pki-console -VERSION=10.2.0 +VERSION=10.3.5 RELEASE=1 -OS=fc21 +OS=fc24 wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-console-$VERSION-$RELEASE.$OS.noarch.rpm diff --git a/scripts/console-install.sh b/scripts/console-install.sh index 0248d9c..1a5912a 100755 --- a/scripts/console-install.sh +++ b/scripts/console-install.sh @@ -6,5 +6,5 @@ BUILD_DIR=$HOME/build/pki-console cd $BUILD_DIR/repo -dnf install -y *.rpm +yum install -y *.rpm diff --git a/scripts/console-publish.sh b/scripts/console-publish.sh new file mode 100755 index 0000000..d52bee9 --- /dev/null +++ b/scripts/console-publish.sh @@ -0,0 +1,10 @@ +#!/bin/sh -x + +BUILD_DIR=$HOME/build/pki-console +mkdir -p $BUILD_DIR +cd $BUILD_DIR + +REPO_DIR=/var/www/html/pub/fedora/linux/releases/20/Everything/x86_64/os +mkdir -p $REPO_DIR +cp repo/*.rpm $REPO_DIR +createrepo $REPO_DIR diff --git a/scripts/console-uninstall.sh b/scripts/console-uninstall.sh index 5957445..fd58b20 100755 --- a/scripts/console-uninstall.sh +++ b/scripts/console-uninstall.sh @@ -1,3 +1,3 @@ #!/bin/sh -x -dnf remove -y pki-console +yum remove -y pki-console -- cgit