move pokt config inside the container

This commit is contained in:
czarly
2022-03-16 12:46:47 +04:00
parent 224326487c
commit 623c458776
3 changed files with 65 additions and 0 deletions

10
pokt/bootstrap.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
if [ ! -f /home/app/.pocket/setupdone ]
then
mkdir -p /home/app/.pocket/data
echo "wget -q -O - '$POCKET_SNAPSHOT' | tar -xv -C /home/app/.pocket/data/"
wget -q -O - $POCKET_SNAPSHOT | tar -xv -C /home/app/.pocket/data/
touch /home/app/.pocket/setupdone
fi