diff options
-rwxr-xr-x | scripts/certs-list.sh | 8 | ||||
-rwxr-xr-x | scripts/certs-remove.sh | 9 | ||||
-rwxr-xr-x | scripts/deps-install.sh | 14 | ||||
-rwxr-xr-x | scripts/ds-install.sh | 15 | ||||
-rwxr-xr-x | scripts/ds-uninstall.sh | 17 | ||||
-rwxr-xr-x | scripts/replica-prepare.sh | 8 | ||||
-rwxr-xr-x | scripts/src-checkout.sh | 5 |
7 files changed, 76 insertions, 0 deletions
diff --git a/scripts/certs-list.sh b/scripts/certs-list.sh new file mode 100755 index 0000000..4e55245 --- /dev/null +++ b/scripts/certs-list.sh @@ -0,0 +1,8 @@ +#!/bin/sh -x + +FIREFOX_DIR=~/.mozilla/firefox +PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'` + +cd $FIREFOX_DIR/$PROFILE + +certutil -L -d . diff --git a/scripts/certs-remove.sh b/scripts/certs-remove.sh new file mode 100755 index 0000000..b4e6134 --- /dev/null +++ b/scripts/certs-remove.sh @@ -0,0 +1,9 @@ +#!/bin/sh -x + +FIREFOX_DIR=~/.mozilla/firefox +PROFILE=`grep Path= $FIREFOX_DIR/profiles.ini | awk -F= '{print $2}'` + +cd $FIREFOX_DIR/$PROFILE + +certutil -D -n "EXAMPLE.COM Certificate Authority" -d . +certutil -D -n "$HOSTNAME" -d . diff --git a/scripts/deps-install.sh b/scripts/deps-install.sh new file mode 100755 index 0000000..d443594 --- /dev/null +++ b/scripts/deps-install.sh @@ -0,0 +1,14 @@ +#!/bin/sh -x + +cd ../../freeipa + +yum erase -y\ + samba-client\ + samba-common + +yum install -y\ + rpm-build\ + `grep "^BuildRequires" freeipa.spec.in | awk '{ print $2 }' | grep -v "^/"` + +yum install -y\ + `grep "^Requires" freeipa.spec.in | awk '{ print $2 }' | grep -v "^/"` diff --git a/scripts/ds-install.sh b/scripts/ds-install.sh new file mode 100755 index 0000000..679a8ae --- /dev/null +++ b/scripts/ds-install.sh @@ -0,0 +1,15 @@ +#!/bin/sh -x + +yum install -y\ + 389-ds-base\ + 389-adminutil\ + 389-admin-console\ + 389-admin-console-doc\ + 389-console\ + 389-dsgw\ + 389-ds-console\ + 389-ds-console-doc\ + 389-ds-base-libs\ + 389-admin\ + 389-ds\ + 389-ds-base-devel diff --git a/scripts/ds-uninstall.sh b/scripts/ds-uninstall.sh new file mode 100755 index 0000000..6b8d448 --- /dev/null +++ b/scripts/ds-uninstall.sh @@ -0,0 +1,17 @@ +#!/bin/sh -x + +yum erase -y\ + 389-ds-base-devel\ + 389-ds-base\ + 389-adminutil\ + 389-admin-console\ + 389-admin-console-doc\ + 389-console\ + 389-dsgw\ + 389-ds-console\ + 389-ds-console-doc\ + 389-ds-base-libs\ + 389-admin\ + 389-ds + +rm -rf /var/lock/dirsrv diff --git a/scripts/replica-prepare.sh b/scripts/replica-prepare.sh new file mode 100755 index 0000000..93c6b70 --- /dev/null +++ b/scripts/replica-prepare.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +REPLICA=$1 +IP_ADDRESS=`nslookup $REPLICA|grep Address:|tail -1|sed 's/Address: //'` + +ipa-replica-prepare -p Secret123 --ip-address=$IP_ADDRESS $REPLICA + +scp /var/lib/ipa/replica-info-${REPLICA}.gpg root@${REPLICA}:/var/lib/ipa diff --git a/scripts/src-checkout.sh b/scripts/src-checkout.sh new file mode 100755 index 0000000..ebb32f3 --- /dev/null +++ b/scripts/src-checkout.sh @@ -0,0 +1,5 @@ +#!/bin/sh -x + +cd ../.. + +git clone git://git.fedorahosted.org/git/freeipa.git |