From 6b06741683d847678edc82260e24110558511a1b Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 9 Jun 2016 08:01:08 +0200 Subject: Updated console scripts. --- scripts/console-download.sh | 11 +++++++++++ scripts/console-install.sh | 9 +++++---- scripts/console-uninstall.sh | 2 +- scripts/console-update.sh | 4 ++++ 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100755 scripts/console-download.sh create mode 100755 scripts/console-update.sh diff --git a/scripts/console-download.sh b/scripts/console-download.sh new file mode 100755 index 0000000..77bbd6d --- /dev/null +++ b/scripts/console-download.sh @@ -0,0 +1,11 @@ +#!/bin/sh -x + +cd ~/Downloads + +BASE_URL=http://kojipkgs.fedoraproject.org/packages +PACKAGE=pki-console +VERSION=10.2.0 +RELEASE=1 +OS=fc21 + +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 40b768d..0248d9c 100755 --- a/scripts/console-install.sh +++ b/scripts/console-install.sh @@ -1,9 +1,10 @@ #!/bin/sh -x -WORK_DIR=`pwd` PROJECT_DIR=`cd ../.. ; pwd` -COMPONENT=console -cd $WORK_DIR/build/$COMPONENT/repo +BUILD_DIR=$HOME/build/pki-console + +cd $BUILD_DIR/repo + +dnf install -y *.rpm -yum install -y *.rpm diff --git a/scripts/console-uninstall.sh b/scripts/console-uninstall.sh index b330088..5957445 100755 --- a/scripts/console-uninstall.sh +++ b/scripts/console-uninstall.sh @@ -1,3 +1,3 @@ #!/bin/sh -x -yum erase -y pki-console +dnf remove -y pki-console diff --git a/scripts/console-update.sh b/scripts/console-update.sh new file mode 100755 index 0000000..94deeff --- /dev/null +++ b/scripts/console-update.sh @@ -0,0 +1,4 @@ +#!/bin/sh -x + +./console-uninstall.sh +./console-install.sh -- cgit