summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 08:19:48 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 08:19:48 +0200
commit2583520990c877fec5b9f5dbe54e4047cb3c0341 (patch)
tree062969c4d946386236f2ddb1a3fead1198c0cbba /scripts
parentb6deb83bb5734e64842b2ac8655c89931ca2ec34 (diff)
downloadpki-dev-2583520990c877fec5b9f5dbe54e4047cb3c0341.tar.gz
pki-dev-2583520990c877fec5b9f5dbe54e4047cb3c0341.tar.xz
pki-dev-2583520990c877fec5b9f5dbe54e4047cb3c0341.zip
Updated console scripts.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/console-build.sh2
-rwxr-xr-xscripts/console-compare.sh6
-rwxr-xr-xscripts/console-download.sh4
-rwxr-xr-xscripts/console-install.sh2
-rwxr-xr-xscripts/console-publish.sh10
-rwxr-xr-xscripts/console-uninstall.sh2
6 files changed, 21 insertions, 5 deletions
diff --git a/scripts/console-build.sh b/scripts/console-build.sh
index f91eff0..6cdffcc 100755
--- a/scripts/console-build.sh
+++ b/scripts/console-build.sh
@@ -11,7 +11,7 @@ cd $BUILD_DIR
rm -rf rpmbuild
mkdir -p rpmbuild
-$COMPOSE --work-dir $BUILD_DIR/rpmbuild rpms 2>&1 | tee build.log
+$COMPOSE --work-dir $BUILD_DIR/rpmbuild rpms
rm -rf repo
mkdir -p repo
diff --git a/scripts/console-compare.sh b/scripts/console-compare.sh
new file mode 100755
index 0000000..0c5a09c
--- /dev/null
+++ b/scripts/console-compare.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+old=$1
+new=/usr/share/java/pki
+
+./jar-compare.sh pki-console.jar $old $new
diff --git a/scripts/console-download.sh b/scripts/console-download.sh
index 77bbd6d..8b4bc86 100755
--- a/scripts/console-download.sh
+++ b/scripts/console-download.sh
@@ -4,8 +4,8 @@ cd ~/Downloads
BASE_URL=http://kojipkgs.fedoraproject.org/packages
PACKAGE=pki-console
-VERSION=10.2.0
+VERSION=10.3.5
RELEASE=1
-OS=fc21
+OS=fc24
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 0248d9c..1a5912a 100755
--- a/scripts/console-install.sh
+++ b/scripts/console-install.sh
@@ -6,5 +6,5 @@ BUILD_DIR=$HOME/build/pki-console
cd $BUILD_DIR/repo
-dnf install -y *.rpm
+yum install -y *.rpm
diff --git a/scripts/console-publish.sh b/scripts/console-publish.sh
new file mode 100755
index 0000000..d52bee9
--- /dev/null
+++ b/scripts/console-publish.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -x
+
+BUILD_DIR=$HOME/build/pki-console
+mkdir -p $BUILD_DIR
+cd $BUILD_DIR
+
+REPO_DIR=/var/www/html/pub/fedora/linux/releases/20/Everything/x86_64/os
+mkdir -p $REPO_DIR
+cp repo/*.rpm $REPO_DIR
+createrepo $REPO_DIR
diff --git a/scripts/console-uninstall.sh b/scripts/console-uninstall.sh
index 5957445..fd58b20 100755
--- a/scripts/console-uninstall.sh
+++ b/scripts/console-uninstall.sh
@@ -1,3 +1,3 @@
#!/bin/sh -x
-dnf remove -y pki-console
+yum remove -y pki-console