UNPKG

426 Bapplication/x-shView Raw
1#!/bin/sh
2
3THIS_DIR=`dirname $0`
4DEST_DIR=`pwd`
5
6# Copy the start script template, and add a unique DEVICE_KEY.
7DEVICE_KEY=`date +%s`
8START_SH=$DEST_DIR/faas_demo_start.sh
9echo "Creating ${START_SH}..."
10sed -e 's/{{DEVICE_KEY}}/'$DEVICE_KEY'/' $THIS_DIR/templates/faas_demo_start.sh > $START_SH
11chmod +x $START_SH
12
13echo "Creating ${DEST_DIR}/faas_demo_apis..."
14cp -r $THIS_DIR/templates/faas_demo_apis $DEST_DIR
15
16echo "Done."