Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (20 sloc) 655 Bytes
#!/bin/sh
# Used by scripts/Makefile and scripts/rebar-pre-script to
# install yaws
rm -rf /tmp/yaws 2>/dev/null
set -e
./Install ${PREFIX} ${ERL} ${WERL} ${ETCDIR}/ ${VARDIR}/ ${ERLBINDIR}/ ${DESTDIR}
conffile="${DESTDIR}${ETCDIR}/yaws/yaws.conf"
if [ -f "$conffile" ]; then
echo "Keeping old config file $conffile"
cp yaws.conf "${conffile}.template"
else
echo "Installing $conffile"
[ -n "$DESTDIR" ] && mkdir "$DESTDIR"
mkdir "${DESTDIR}${ETCDIR}"
mkdir "${DESTDIR}${ETCDIR}/yaws"
cp yaws.conf "$conffile"
fi
cp ../ssl/yaws-cert.pem "${DESTDIR}${ETCDIR}/yaws"
cp ../ssl/yaws-key.pem "${DESTDIR}${ETCDIR}/yaws"
exit 0