summaryrefslogtreecommitdiffstats
path: root/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl')
-rwxr-xr-xencap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl
index a02c265cb..8a20a968d 100755
--- a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl
+++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall.tmpl
@@ -81,6 +81,17 @@ else
touch ${BASEDIR}/sbin/.SENTINEL_SITE
fi
+if [ ! -h /service/ostiary ]; then
+ if [ -d /usr/local/var/svc.d/ostiary ]; then
+ ln -s /usr/local/var/svc.d/ostiary /service/ostiary
+ else
+ printf "ERROR: /usr/local/var/svc.d/ostiary does not exist.\n"
+ exit 1
+ fi
+else
+ printf "INFO: /service/ostiary already exists, not replacing...\n"
+fi
+
//if int(@BCFG2_CLIENT_RUN_INTERVAL_SECONDS) > 0
if [ ! -h /service/bcfg2-client ]; then
if [ -d /usr/local/var/svc.d/bcfg2-client ]; then