diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-25 06:12:43 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-25 06:12:43 +0000 |
commit | 2e0d46f2539189e8773f4827c20548bd275e2529 (patch) | |
tree | cead071c477cc79b47361c099abb57d276db97e7 /encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall | |
parent | 7d04c19afa0f690a3123fc5a7c929a4675b37b84 (diff) | |
download | bcfg2-2e0d46f2539189e8773f4827c20548bd275e2529.tar.gz bcfg2-2e0d46f2539189e8773f4827c20548bd275e2529.tar.bz2 bcfg2-2e0d46f2539189e8773f4827c20548bd275e2529.zip |
EncapPackages: Add bcfg2-client "daemon" start to bcfg2-site
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2108 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall')
-rwxr-xr-x | encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall deleted file mode 100755 index 4ed875e4c..000000000 --- a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh -e - -umask 002 -BASEDIR="${ENCAP_TARGET}" # Usually /usr/local -PKGDIR="${ENCAP_SOURCE}/${ENCAP_PKGNAME}" # Ususally /usr/local/encap/<pkgname> -LOG="${PKGDIR}/postinstall.log" -MKINSTALLDIRS="${PKGDIR}/mkinstalldirs" -exec > $LOG 2>&1 - -printf "Running ${ENCAP_PKGNAME} postinstall script...\n" -date - -chmod 755 ${MKINSTALLDIRS} -${MKINSTALLDIRS} "${BASEDIR}/etc/default/bcfg2-client/env" -${MKINSTALLDIRS} "${BASEDIR}/etc/default/bcfg2-server/env" -${MKINSTALLDIRS} "${BASEDIR}/sbin" - -rmcp() { - SRCFILENAME="`basename ${1}`" - if [ -d "${2}" ]; then - DESTDIRNAME="$2" - else - DESTDIRNAME="`dirname ${2}`" - fi - TARGETNAME="$DESTDIRNAME/$SRCFILENAME" - if [ -h "$TARGETNAME" ]; then rm "$TARGETNAME"; fi - if [ -f "$TARGETNAME" ]; then rm "$TARGETNAME"; fi - cp "$1" "$2" -} - -if [ -f ${BASEDIR}/etc/default/bcfg2-client/.SENTINEL_BCFG2 ]; then - printf "INFO: bcfg2 client options have been updated by bcfg2 -\n" - printf "INFO: not replacing that configuration.\n" -elif [ -f ${BASEDIR}/etc/default/bcfg2-client/.SENTINEL_SITE ]; then - printf "INFO: bcfg2 client options have been previously updated -\n" - printf "INFO: not replacing that configuration.\n" -else - DIR="etc/default/bcfg2-client" - rmcp $PKGDIR/$DIR/env/RUN_INTERVAL_SECONDS ${BASEDIR}/$DIR/env/ - rmcp $PKGDIR/$DIR/env/OPTIONS ${BASEDIR}/$DIR/env/ - touch ${BASEDIR}/$DIR/.SENTINEL_SITE -fi - -if [ -f ${BASEDIR}/etc/default/bcfg2-server/.SENTINEL_BCFG2 ]; then - printf "INFO: bcfg2 server options have been updated by bcfg2 -\n" - printf "INFO: not replacing that configuration.\n" -elif [ -f ${BASEDIR}/etc/default/bcfg2-server/.SENTINEL_SITE ]; then - printf "INFO: bcfg2 server options have been previously updated -\n" - printf "INFO: not replacing that configuration.\n" -else - DIR="etc/default/bcfg2-server" - rmcp $PKGDIR/$DIR/env/OPTIONS ${BASEDIR}/$DIR/env/ - touch ${BASEDIR}/$DIR/.SENTINEL_SITE -fi - -if [ -f ${BASEDIR}/etc/.SENTINEL_BCFG2 ]; then - printf "INFO: bcfg2.conf and/or ostiary.cfg may have been updated by\n" - printf "INFO: bcfg2 - not replacing that configuration.\n" -elif [ -f ${BASEDIR}/etc/.SENTINEL_SITE ]; then - printf "INFO: bcfg2.conf and/or ostiary.cfg may have been previously\n" - printf "INFO: updated - not replacing that configuration.\n" -else - rmcp $PKGDIR/etc/bcfg2.conf ${BASEDIR}/etc/ - rmcp $PKGDIR/etc/ostiary.cfg ${BASEDIR}/etc/ - touch ${BASEDIR}/etc/.SENTINEL_SITE -fi - -if [ -f ${BASEDIR}/sbin/.SENTINEL_BCFG2 ]; then - printf "INFO: ost-bcfg2.sh may have been updated by bcfg2 -\n" - printf "INFO: not replacing that configuration with this script.\n" -elif [ -f ${BASEDIR}/sbin/.SENTINEL_SITE ]; then - printf "INFO: ost-bcfg2.sh may have been previously updated -\n" - printf "INFO: not replacing that configuration with this script.\n" -else - rmcp $PKGDIR/sbin/ost-bcfg2.sh ${BASEDIR}/sbin/ - touch ${BASEDIR}/sbin/.SENTINEL_SITE -fi - -printf "Finished ${ENCAP_PKGNAME} postinstall script.\n" - -exit 0 |