forked from snyk-labs/serverless-spring-goof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
createFunctions.sh
executable file
·21 lines (16 loc) · 1008 Bytes
/
createFunctions.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cd target
cp todo-1.0-SNAPSHOT-aws.jar todo-1.0-delete-fn.jar
cp todo-1.0-SNAPSHOT-aws.jar todo-1.0-update-fn.jar
cp todo-1.0-SNAPSHOT-aws.jar todo-1.0-create-fn.jar
cp todo-1.0-SNAPSHOT-aws.jar todo-1.0-get-fn.jar
cp todo-1.0-SNAPSHOT-aws.jar todo-1.0-import-fn.jar
jar -xvf todo-1.0-SNAPSHOT-aws.jar application.properties
mv application.properties application.properties.ORIG
sed -e s/CreateTodoFunction/DeleteTodoFunction/g application.properties.ORIG > application.properties
jar -uvf todo-1.0-delete-fn.jar/ application.properties
sed -e s/CreateTodoFunction/UpdateTodoFunction/g application.properties.ORIG > application.properties
jar -uvf todo-1.0-update-fn.jar/ application.properties
sed -e s/CreateTodoFunction/GetTodoFunction/g application.properties.ORIG > application.properties
jar -uvf todo-1.0-get-fn.jar/ application.properties
sed -e s/ImportTodosFunction/GetTodoFunction/g application.properties.ORIG > application.properties
jar -uvf todo-1.0-import-fn.jar/ application.properties