-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
28 lines (23 loc) · 823 Bytes
/
entrypoint.sh
File metadata and controls
28 lines (23 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
if [ -e ~/.epic/main/bs ]
then
echo "chain_data exists - no bootstrap needed..."
else
echo "Setting up bootstrap chain_data file..."
wget -nv --show-progress --no-check-certificate https://bootstrap.epiccash.com/bootstrap.zip -P ~/.epic/main
rm -R ~/.epic/main/chain_data
unzip ~/.epic/main/bootstrap.zip -d ~/.epic/main
rm ~/.epic/main/bootstrap.zip
touch ~/.epic/main/bs
echo "Done"
fi
/usr/bin/screen -dmS epicnode /home/epicsvcs/epic-node
#/usr/bin/screen -dmS epicbox /home/epicsvcs/epicbox
# check for cert if not there then run certbot to create certs
if [ -e /etc/letsencrypt/live/node.mydomain.somedomain.dom/fullchain.pem ]
then
echo "Certs Exist"
else
sudo certbot --nginx --non-interactive --agree-tos -m webmaster@example.com -d node.mydomain.somedomain.dom
fi
tail -f /dev/null