From 0782ff9dec5bb1d1b383d239e160dbbc8bc3ae29 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 9 Jun 2016 07:49:12 +0200 Subject: Update theme scripts. --- scripts/theme-download.sh | 12 ++++++++++++ scripts/theme-install.sh | 6 +++--- scripts/theme-update.sh | 4 ++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 scripts/theme-download.sh create mode 100755 scripts/theme-update.sh diff --git a/scripts/theme-download.sh b/scripts/theme-download.sh new file mode 100755 index 0000000..76fe539 --- /dev/null +++ b/scripts/theme-download.sh @@ -0,0 +1,12 @@ +#!/bin/sh -x + +cd ~/Downloads + +BASE_URL=http://kojipkgs.fedoraproject.org/packages +PACKAGE=dogtag-pki-theme +VERSION=10.2.0 +RELEASE=1 +OS=fc21 + +wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-console-theme-$VERSION-$RELEASE.$OS.noarch.rpm +wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/dogtag-pki-server-theme-$VERSION-$RELEASE.$OS.noarch.rpm diff --git a/scripts/theme-install.sh b/scripts/theme-install.sh index b353fbe..f890e84 100755 --- a/scripts/theme-install.sh +++ b/scripts/theme-install.sh @@ -1,9 +1,9 @@ #!/bin/sh -x -WORK_DIR=`pwd` PROJECT_DIR=`cd ../.. ; pwd` -COMPONENT=theme -cd $WORK_DIR/build/$COMPONENT/repo +BUILD_DIR=$HOME/build/pki-theme + +cd $BUILD_DIR/repo yum install -y *.rpm diff --git a/scripts/theme-update.sh b/scripts/theme-update.sh new file mode 100755 index 0000000..3c261de --- /dev/null +++ b/scripts/theme-update.sh @@ -0,0 +1,4 @@ +#!/bin/sh -x + +./theme-uninstall.sh +./theme-install.sh -- cgit