summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-06-09 07:49:12 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-06-09 07:51:30 +0200
commit0782ff9dec5bb1d1b383d239e160dbbc8bc3ae29 (patch)
tree0e27009e7b61f0b9e6d420bd1b81e1c5a5716abf
parent318852575ceb8c42e8844b673c2422a38b6f60f4 (diff)
downloadpki-dev-0782ff9dec5bb1d1b383d239e160dbbc8bc3ae29.tar.gz
pki-dev-0782ff9dec5bb1d1b383d239e160dbbc8bc3ae29.tar.xz
pki-dev-0782ff9dec5bb1d1b383d239e160dbbc8bc3ae29.zip
Update theme scripts.
-rwxr-xr-xscripts/theme-download.sh12
-rwxr-xr-xscripts/theme-install.sh6
-rwxr-xr-xscripts/theme-update.sh4
3 files changed, 19 insertions, 3 deletions
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