diff --git a/sahana-demo.sh b/sahana-demo.sh index c9c208c..aed3065 100755 --- a/sahana-demo.sh +++ b/sahana-demo.sh @@ -9,7 +9,7 @@ docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh service postgres start # Build Docker container -docker build -t sahana ${SOURCE_DIR} +docker build -t sahana $(realpath $(dirname "${0}"))/sahana envsubst <${SOURCE_DIR}/etc/init.d/sahana-demo >/etc/init.d/sahana-demo chmod +x /etc/init.d/sahana-demo diff --git a/sambro.sh b/sambro.sh index 2e56780..a77ae2c 100755 --- a/sambro.sh +++ b/sambro.sh @@ -8,7 +8,7 @@ docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh service postgres start # Build Docker container -docker build -t sahana ${SOURCE_DIR} +docker build -t sahana $(realpath $(dirname "${0}"))/sahana cp ${SOURCE_DIR}/etc/init.d/sambro /etc/init.d/sambro rc-update -u