summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/console-download.sh11
-rwxr-xr-xscripts/console-install.sh9
-rwxr-xr-xscripts/console-uninstall.sh2
-rwxr-xr-xscripts/console-update.sh4
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