summary refs log tree commit diff
path: root/appbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'appbuild.sh')
-rwxr-xr-x[-rw-r--r--]appbuild.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/appbuild.sh b/appbuild.sh
index 7ae04bb..f5d1702 100644..100755
--- a/appbuild.sh
+++ b/appbuild.sh
@@ -1,15 +1,21 @@
 #!/bin/sh
-
+if [ ! -n $appRoot ]
+then
+	export appRoot="/app"
+fi
+mkdir -pv $appRoot/src
+cd $appRoot/src
+echo $appRoot
 git clone https://git.piusbird.space/miniweb.git/
 cd miniweb
 make
-cp miniwebproxy /app
-cp -r scripts/ /app
+cp miniwebproxy $appRoot
+cp -r scripts/ $appRoot
 chmod +x sign.sh
 cd ..
 sh -c miniweb/sign.sh
 git clone https://git.piusbird.space/poseidon.git/
 cd poseidon 
 go build
-cp *.html /app
-cp poseidon /app
+cp *.html $appRoot
+cp poseidon $appRoot