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