# -----------------------------------------------------------------------
# Handling passed arguments to the script
# -----------------------------------------------------------------------
-while getopts ay option
+while getopts ays option
do
case "${option}"
in
a) AUTOSTART=1;;
y) YES=1;;
+ s) SAMPLEDATA=--load-all-sample;;
esac
done
--create-database \
--create-schema \
--create-offline \
- --update-config \
+ --update-config $SAMPLEDATA \
--service all \
--user evergreen \
--password evergreen \
OSRF_COMMAND='
export LD_LIBRARY_PATH=/openils/lib:/usr/local/lib:/usr/local/lib/dbd:$LD_LIBRARY_PATH \
&& export PATH=/openils/bin:$PATH \
-&& /openils/bin/osrf_ctl.sh -l -a start_router && sleep 5 \
-&& /openils/bin/osrf_ctl.sh -l -a start_perl && sleep 10 \
-&& /openils/bin/osrf_ctl.sh -l -a start_c && sleep 3 \
+&& /openils/bin/osrf_ctl.sh -l -a restart_router && sleep 5 \
+&& /openils/bin/osrf_ctl.sh -l -a restart_perl && sleep 10 \
+&& /openils/bin/osrf_ctl.sh -l -a restart_c && sleep 3 \
&& /openils/bin/autogen.sh /openils/conf/opensrf_core.xml \
&& echo Finis;
'