diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-06-09 08:01:08 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-06-09 08:01:08 +0200 |
commit | 6b06741683d847678edc82260e24110558511a1b (patch) | |
tree | 46016a366874745897295fbc6fcc56acbc4db22f | |
parent | d9cbc378e9b17c1e6e09a04017d3fe600a49bc26 (diff) | |
download | pki-dev-6b06741683d847678edc82260e24110558511a1b.tar.gz pki-dev-6b06741683d847678edc82260e24110558511a1b.tar.xz pki-dev-6b06741683d847678edc82260e24110558511a1b.zip |
Updated console scripts.
-rwxr-xr-x | scripts/console-download.sh | 11 | ||||
-rwxr-xr-x | scripts/console-install.sh | 9 | ||||
-rwxr-xr-x | scripts/console-uninstall.sh | 2 | ||||
-rwxr-xr-x | scripts/console-update.sh | 4 |
4 files changed, 21 insertions, 5 deletions
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 |