Skip to content
Newer
Older
100755 30 lines (23 sloc) 786 Bytes
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
1 #!/bin/sh
2
3 # Used by scripts/Makefile and scripts/rebar-pre-script to
4 # install yaws
5
6 rm -rf /tmp/yaws 2>/dev/null
7
8 set -e
9
fcae3cd @vinoski quote Install arguments in regular-install (Christopher Faulet)
vinoski authored May 16, 2011
10 ./Install "${PREFIX}" "${ERL}" "${WERL}" "${ETCDIR}/" \
11 "${VARDIR}/" "${ERLBINDIR}/" "${DESTDIR}"
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
12
13 conffile="${DESTDIR}${ETCDIR}/yaws/yaws.conf"
14 if [ -f "$conffile" ]; then
15 echo "Keeping old config file $conffile"
16 cp yaws.conf "${conffile}.template"
17 else
18 echo "Installing $conffile"
1aeaccd @vinoski check for install dirs before calling mkdir
vinoski authored May 9, 2011
19 if [ -n "$DESTDIR" ]; then
20 [ -d "$DESTDIR" ] || mkdir "$DESTDIR"
21 fi
22 [ -d "${DESTDIR}${ETCDIR}" ] || mkdir "${DESTDIR}${ETCDIR}"
23 [ -d "${DESTDIR}${ETCDIR}/yaws" ] || mkdir "${DESTDIR}${ETCDIR}/yaws"
bedbc05 @tuncer add rebar support (Tuncer Ayaz and Steve Vinoski)
tuncer authored May 7, 2011
24 cp yaws.conf "$conffile"
25 fi
26 cp ../ssl/yaws-cert.pem "${DESTDIR}${ETCDIR}/yaws"
27 cp ../ssl/yaws-key.pem "${DESTDIR}${ETCDIR}/yaws"
28
29 exit 0
Something went wrong with that request. Please try again.