From dbbbd177dcb2eed6143a209a3f32561b17387bde Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 14 Jan 2014 12:12:53 -0500 Subject: Updated DS scripts. --- scripts/core-download.sh | 21 +++++++++++++++++++++ scripts/core-publish.sh | 10 ++++++++++ scripts/core-upgrade.sh | 6 +++--- scripts/ds-create.sh | 6 +++--- scripts/ds-remove.sh | 2 +- scripts/ds-restart.sh | 2 +- scripts/ds-start.sh | 2 +- scripts/ds-stop.sh | 2 +- 8 files changed, 41 insertions(+), 10 deletions(-) create mode 100755 scripts/core-download.sh create mode 100755 scripts/core-publish.sh 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 -- cgit