PLATFORM_IF_MATCH(linux)
PLATFORM_ELSE
PLATFORM_ENDIF
# /usr/local/etc stuff
test -d share || mkdir share
test -d share/doc || mkdir share/doc
test -d share/doc/ostiary || mkdir share/doc/ostiary
test -d share/doc/ostiary/examples || mkdir share/doc/ostiary/examples
mv etc/ostiary.cfg share/doc/ostiary/examples/ostiary.cfg
rmdir etc
# daemons should be in /usr/local/sbin
test -d sbin || mkdir sbin
mv bin/ostiaryd sbin/ostiaryd
# daemontool stuff
test -d var || mkdir var
test -d var/svc.d || mkdir var/svc.d
test -d var/svc.d/ostiary || mkdir var/svc.d/ostiary
test -d var/svc.d/ostiary/log || mkdir var/svc.d/ostiary/log
# Make "this encap is installed" sentinal file available in /usr/local/var/encap
test -d var/encap || mkdir var/encap
touch var/encap/${ENCAP_PKGNAME}
&1
exec /usr/local/sbin/ostiaryd -c /usr/local/etc/ostiary.cfg -v -D
]]>
&1
exec /command/multilog t /usr/local/var/multilog/ostiary
]]>
$LOG 2>&1
printf "Running ostiary postinstall script...\n"
date
test -d /usr/local/var/multilog || mkdir /usr/local/var/multilog
test -d /usr/local/var/multilog/ostiary || mkdir /usr/local/var/multilog/ostiary
printf "Finished ostiary postinstall script.\n"
]]>
description Ostiary - Simple, Secure Remote Script Execution