diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-09-02 23:06:16 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-09-02 23:06:16 +0000 |
commit | 57a3484065040d4a651187d21482ccdd4a8faac4 (patch) | |
tree | f087d0ea0334eb816fef7a7ad8ac59795aed29e2 /encap/src/makeself-dist | |
parent | 9a5ec9dd1783f69fc4870f72ba7dfd8035422607 (diff) | |
download | bcfg2-57a3484065040d4a651187d21482ccdd4a8faac4.tar.gz bcfg2-57a3484065040d4a651187d21482ccdd4a8faac4.tar.bz2 bcfg2-57a3484065040d4a651187d21482ccdd4a8faac4.zip |
EncapPackages:
* Delete VERSION and ChangeLog, just use bcfg2 version or svn release #
* Update install scripts to allow forcing replacement of local config files
* Make python build fail if "from httplib import HTTPS" fails
* Some doc updates
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2172 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/makeself-dist')
-rwxr-xr-x | encap/src/makeself-dist/makedist.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/encap/src/makeself-dist/makedist.sh b/encap/src/makeself-dist/makedist.sh index 72855dc4f..68aee6c99 100755 --- a/encap/src/makeself-dist/makedist.sh +++ b/encap/src/makeself-dist/makedist.sh @@ -234,6 +234,18 @@ chgrp 0 \${LOC_OST_CFG}* chmod 600 \${LOC_BCFG2_CONF}* chmod 600 \${LOC_OST_CFG}* +# Restart services if they exist to catch any config file changes +if [ -x /command/svc -a -x /command/svstat ]; then + for LOC_SERVICE in bcfg2-client bcfg2-server ostiary; do + if [ -h /service/\${LOC_SERVICE} ]; then + printf "Restarting daemontools service \${LOC_SERVICE}...\n" + /command/svc -t /service/\${LOC_SERVICE} + sleep 2 + /command/svstat /service/\${LOC_SERVICE} + fi + done +fi + exit 0 EOF @@ -241,7 +253,7 @@ EOF chmod 755 $DISTDIR/setup.sh # Create .run file from $DISTDIR with makeself -BLURB="Bcfg2 Client install for $SITENAME (version $SITEVER)" +BLURB="Bcfg2 Client install for $SITENAME (version $SITEVER) - export REPLACE_CONFIG=yes before running to force config file replacement" ${MAKESELF} --nox11 $DISTDIR ${DISTDIR}.run "$BLURB" ./setup.sh exit 0 |