summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-01-14 12:12:53 -0500
committerEndi S. Dewata <edewata@redhat.com>2014-01-14 12:12:53 -0500
commitdbbbd177dcb2eed6143a209a3f32561b17387bde (patch)
tree49811b3c7e8decc0bab14aa42a439e5110661d5e
parent12dddcc9a89ad7cfbebd452b9e14a006db39431b (diff)
downloadpki-dev-dbbbd177dcb2eed6143a209a3f32561b17387bde.tar.gz
pki-dev-dbbbd177dcb2eed6143a209a3f32561b17387bde.tar.xz
pki-dev-dbbbd177dcb2eed6143a209a3f32561b17387bde.zip
Updated DS scripts.
-rwxr-xr-xscripts/core-download.sh21
-rwxr-xr-xscripts/core-publish.sh10
-rwxr-xr-xscripts/core-upgrade.sh6
-rwxr-xr-xscripts/ds-create.sh6
-rwxr-xr-xscripts/ds-remove.sh2
-rwxr-xr-xscripts/ds-restart.sh2
-rwxr-xr-xscripts/ds-start.sh2
-rwxr-xr-xscripts/ds-stop.sh2
8 files changed, 41 insertions, 10 deletions
diff --git a/scripts/core-download.sh b/scripts/core-download.sh
new file mode 100755
index 0000000..ce851db
--- /dev/null
+++ b/scripts/core-download.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -x
+
+cd ~/Downloads
+
+BASE_URL=http://kojipkgs.fedoraproject.org/packages
+PACKAGE=pki-core
+VERSION=10.1.0
+RELEASE=1
+OS=fc20
+
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-base-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-ca-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-javadoc-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-kra-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-ocsp-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-server-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-tks-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/noarch/pki-tps-tomcat-$VERSION-$RELEASE.$OS.noarch.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/x86_64/pki-symkey-$VERSION-$RELEASE.$OS.x86_64.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/x86_64/pki-tools-$VERSION-$RELEASE.$OS.x86_64.rpm
+wget $BASE_URL/$PACKAGE/$VERSION/$RELEASE.$OS/x86_64/pki-core-debuginfo-$VERSION-$RELEASE.$OS.x86_64.rpm
diff --git a/scripts/core-publish.sh b/scripts/core-publish.sh
new file mode 100755
index 0000000..d4b89af
--- /dev/null
+++ b/scripts/core-publish.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -x
+
+BUILD_DIR=$HOME/build/pki-core
+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/core-upgrade.sh b/scripts/core-upgrade.sh
index 8f65392..ed31999 100755
--- a/scripts/core-upgrade.sh
+++ b/scripts/core-upgrade.sh
@@ -1,9 +1,9 @@
#!/bin/sh -x
-WORK_DIR=`pwd`
PROJECT_DIR=`cd ../.. ; pwd`
-COMPONENT=core
-cd $WORK_DIR/build/$COMPONENT/repo
+BUILD_DIR=$HOME/build/pki-core
+
+cd $BUILD_DIR/repo
rpm -Uvh *.rpm
diff --git a/scripts/ds-create.sh b/scripts/ds-create.sh
index ee68802..759160b 100755
--- a/scripts/ds-create.sh
+++ b/scripts/ds-create.sh
@@ -2,10 +2,10 @@
setup-ds.pl --silent --\
General.FullMachineName=$HOSTNAME\
- General.SuiteSpotUserID=dirsrv\
- General.SuiteSpotGroup=dirsrv\
+ General.SuiteSpotUserID=nobody\
+ General.SuiteSpotGroup=nobody\
slapd.ServerPort=389\
- slapd.ServerIdentifier=pki-master\
+ slapd.ServerIdentifier=pki-tomcat\
slapd.Suffix=dc=example,dc=com\
slapd.RootDN="cn=Directory Manager"\
slapd.RootDNPwd=Secret123
diff --git a/scripts/ds-remove.sh b/scripts/ds-remove.sh
index 4ec570c..980a354 100755
--- a/scripts/ds-remove.sh
+++ b/scripts/ds-remove.sh
@@ -1,3 +1,3 @@
#!/bin/sh -x
-remove-ds.pl -f -i slapd-pki-master
+remove-ds.pl -f -i slapd-pki-tomcat
diff --git a/scripts/ds-restart.sh b/scripts/ds-restart.sh
index 94b92ea..cf36c33 100755
--- a/scripts/ds-restart.sh
+++ b/scripts/ds-restart.sh
@@ -1,3 +1,3 @@
#!/bin/sh -x
-systemctl restart dirsrv@pki-master.service
+systemctl restart dirsrv@pki-tomcat.service
diff --git a/scripts/ds-start.sh b/scripts/ds-start.sh
index 6f38aa6..a6d065c 100755
--- a/scripts/ds-start.sh
+++ b/scripts/ds-start.sh
@@ -1,3 +1,3 @@
#!/bin/sh -x
-systemctl start dirsrv@pki-master.service
+systemctl start dirsrv@pki-tomcat.service
diff --git a/scripts/ds-stop.sh b/scripts/ds-stop.sh
index 61d56e9..3950cf9 100755
--- a/scripts/ds-stop.sh
+++ b/scripts/ds-stop.sh
@@ -1,3 +1,3 @@
#!/bin/sh -x
-systemctl stop dirsrv@pki-master.service
+systemctl stop dirsrv@pki-tomcat.service