Cross Reference: preinst
xref
: /
forgerock
/
opendj-b2.6
/
resource
/
debian
/
control
/
preinst
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
2008
N/A
#!/
bin
/
bash
2008
N/A
set
-e
2008
N/A
# Pre installation script
2008
N/A
if
[
"$1"
=
"upgrade"
]
2008
N/A
then
2008
N/A
# Only if the instance has been configured
2008
N/A
if
[ -f @
prefix
@/
config
/
buildinfo
] && [
"
$(
ls
-A @
prefix
@/
config
/
archived-configs
)
"
]
2008
N/A
then
2008
N/A
# If the server is running before upgrade, creates a flag.
2008
N/A
if
[ -f @
prefix
@/
logs
/
server.pid
]
2008
N/A
then
2008
N/A
touch
@
prefix
@/
logs
/
status
2008
N/A
fi
2008
N/A
echo
*
Stopping
OpenDJ
server
...
2008
N/A
@
prefix
@/
bin
/./
stop
-
ds
2008
N/A
else
2008
N/A
echo
"Instance is not configured. Upgrade aborded."
2008
N/A
exit
-
1
2008
N/A
fi
2008
N/A
fi
5680
N/A
echo
5680
N/A
# End of the pre installation script