2017-10-02 14:18:38 -07:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
set -x
|
|
|
|
|
2017-11-16 14:18:26 -08:00
|
|
|
TEMPLATES_BRANCH="dev-mainnet"
|
2017-10-02 14:18:38 -07:00
|
|
|
|
2017-11-16 14:18:26 -08:00
|
|
|
echo "========== ${TEMPLATES_BRANCH}/netstats-server/install.sh starting =========="
|
2017-10-02 14:18:38 -07:00
|
|
|
echo "===== current time: $(date)"
|
|
|
|
echo "===== username: $(whoami)"
|
|
|
|
echo "===== working directory: $(pwd)"
|
|
|
|
echo "===== operating system info:"
|
|
|
|
lsb_release -a
|
|
|
|
echo "===== memory usage info:"
|
|
|
|
free -m
|
2017-11-16 14:18:26 -08:00
|
|
|
|
|
|
|
echo "===== downloading common.vars"
|
|
|
|
curl -sLO "https://raw.githubusercontent.com/oraclesorg/test-templates/${TEMPLATES_BRANCH}/common.vars"
|
|
|
|
source common.vars
|
|
|
|
|
2017-11-16 09:09:07 -08:00
|
|
|
echo "===== environmental variables:"
|
2017-10-02 14:18:38 -07:00
|
|
|
printenv
|
|
|
|
|
2017-11-16 14:18:26 -08:00
|
|
|
INSTALL_CONFIG_REPO="https://raw.githubusercontent.com/oraclesorg/test-templates/${TEMPLATES_BRANCH}/TestTestNet/bootnode"
|
|
|
|
GENESIS_REPO_LOC="https://raw.githubusercontent.com/oraclesorg/oracles-scripts/${SCRIPTS_BRANCH}/spec.json"
|
2017-10-02 14:18:38 -07:00
|
|
|
GENESIS_JSON="spec.json"
|
|
|
|
NODE_TOML="node.toml"
|
2017-11-16 14:18:26 -08:00
|
|
|
BOOTNODES_TXT="https://raw.githubusercontent.com/oraclesorg/test-templates/${TEMPLATES_BRANCH}/TestTestNet/bootnodes.txt"
|
2017-10-02 14:18:38 -07:00
|
|
|
|
|
|
|
echo "===== repo base path: ${INSTALL_CONFIG_REPO}"
|
|
|
|
|
|
|
|
# this should be provided through env by azure template
|
|
|
|
NETSTATS_SECRET="${NETSTATS_SECRET}"
|
|
|
|
NODE_FULLNAME="${NODE_FULLNAME:-NetStat}"
|
|
|
|
NODE_ADMIN_EMAIL="${NODE_ADMIN_EMAIL:-somebody@somehere}"
|
|
|
|
ADMIN_USERNAME="${ADMIN_USERNAME}"
|
|
|
|
|
|
|
|
export HOME="${HOME:-/home/${ADMIN_USERNAME}}"
|
|
|
|
|
|
|
|
prepare_homedir() {
|
|
|
|
echo "=====> prepare_homedir"
|
|
|
|
# ln -s "$(pwd)" "/home/${ADMIN_USERNAME}/script-dir"
|
|
|
|
cd "/home/${ADMIN_USERNAME}"
|
|
|
|
echo "Now changed directory to: $(pwd)"
|
|
|
|
mkdir -p logs
|
|
|
|
mkdir -p logs/old
|
|
|
|
echo "<===== prepare_homedir"
|
|
|
|
}
|
|
|
|
|
2017-10-27 07:44:19 -07:00
|
|
|
increase_ulimit_n() {
|
2017-10-27 08:56:10 -07:00
|
|
|
echo "${ADMIN_USERNAME} soft nofile 100000" | sudo tee /etc/security/limits.conf >> /dev/null
|
2017-11-16 09:09:07 -08:00
|
|
|
echo "${ADMIN_USERNAME} hard nofile 100000" | sudo tee /etc/security/limits.conf >> /dev/null
|
2017-10-27 07:44:19 -07:00
|
|
|
}
|
|
|
|
|
2017-11-16 05:49:27 -08:00
|
|
|
setup_ufw() {
|
|
|
|
echo "=====> setup_ufw"
|
|
|
|
sudo sudo ufw enable
|
|
|
|
sudo ufw default deny incoming
|
|
|
|
sudo ufw allow 443
|
|
|
|
sudo ufw allow 8545
|
|
|
|
sudo ufw allow 22/tcp
|
|
|
|
sudo ufw allow 30303/tcp
|
|
|
|
sudo ufw allow 30303/udp
|
|
|
|
echo "<===== setup_ufw"
|
|
|
|
}
|
|
|
|
|
2017-10-02 14:18:38 -07:00
|
|
|
install_ntpd() {
|
|
|
|
echo "=====> install_ntpd"
|
|
|
|
sudo timedatectl set-ntp no
|
|
|
|
sudo apt-get -y install ntp
|
|
|
|
|
|
|
|
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
|
|
|
|
#!/bin/sh
|
|
|
|
sudo service ntp stop
|
|
|
|
sudo ntpdate -s ntp.ubuntu.com
|
|
|
|
sudo service ntp start
|
|
|
|
EOF"
|
|
|
|
sudo chmod 755 /etc/cron.hourly/ntpdate
|
|
|
|
echo "<===== install_ntpd"
|
|
|
|
}
|
|
|
|
|
|
|
|
install_haveged() {
|
|
|
|
echo "=====> install_haveged"
|
|
|
|
sudo apt-get -y install haveged
|
|
|
|
sudo update-rc.d haveged defaults
|
|
|
|
echo "<===== install_haveged"
|
|
|
|
}
|
|
|
|
|
|
|
|
allocate_swap() {
|
|
|
|
echo "=====> allocate_swap"
|
|
|
|
sudo apt-get -y install bc
|
|
|
|
#sudo fallocate -l $(echo "$(free -b | awk '/Mem/{ print $2 }')*2" | bc -l) /swapfile
|
|
|
|
sudo fallocate -l 1G /swapfile
|
|
|
|
sudo chmod 600 /swapfile
|
|
|
|
sudo mkswap /swapfile
|
|
|
|
sudo swapon /swapfile
|
|
|
|
sudo sh -c "printf '/swapfile none swap sw 0 0\n' >> /etc/fstab"
|
|
|
|
sudo sh -c "printf 'vm.swappiness=10\n' >> /etc/sysctl.conf"
|
|
|
|
sudo sysctl vm.vfs_cache_pressure=50
|
|
|
|
sudo sh -c "printf 'vm.vfs_cache_pressure = 50\n' >> /etc/sysctl.conf"
|
|
|
|
echo "<===== allocate_swap"
|
|
|
|
}
|
|
|
|
|
|
|
|
pull_image_and_configs() {
|
|
|
|
echo "=====> pull_image_and_configs"
|
|
|
|
# curl -s -O "${INSTALL_CONFIG_REPO}/../${GENESIS_JSON}"
|
|
|
|
curl -s -o "${GENESIS_JSON}" "${GENESIS_REPO_LOC}"
|
|
|
|
curl -s -O "${INSTALL_CONFIG_REPO}/${NODE_TOML}"
|
2017-10-11 07:55:47 -07:00
|
|
|
curl -s -o "bootnodes.txt" "${BOOTNODES_TXT}"
|
2017-10-02 14:18:38 -07:00
|
|
|
sed -i "/\[network\]/a nat=\"extip:${EXT_IP}\"" ${NODE_TOML}
|
2017-10-25 09:05:49 -07:00
|
|
|
#sed -i "/\[network\]/a bootnodes=\[$(cat bootnodes.txt | sed 's/\r$//' | awk -F'#' '{ print $1 }' | awk '/enode/{ print "\""$1"\"" }' | paste -sd "," -)\]" ${NODE_TOML}
|
|
|
|
sed -i "/\[network\]/a reserved_peers=\"/home/${ADMIN_USERNAME}/bootnodes.txt\"" ${NODE_TOML}
|
2017-10-02 14:18:38 -07:00
|
|
|
cat >> ${NODE_TOML} <<EOF
|
|
|
|
[misc]
|
|
|
|
log_file = "/home/${ADMIN_USERNAME}/logs/parity.log"
|
|
|
|
EOF
|
2017-11-16 14:18:26 -08:00
|
|
|
mkdir -p parity_data/keys/OraclesPoA
|
2017-10-02 14:18:38 -07:00
|
|
|
|
|
|
|
echo "<===== pull_image_and_configs"
|
|
|
|
}
|
|
|
|
|
|
|
|
install_nodejs() {
|
|
|
|
echo "=====> install_nodejs"
|
|
|
|
# curl -sL https://deb.nodesource.com/setup_0.12 | bash -
|
2017-11-16 14:18:26 -08:00
|
|
|
curl -sL ${NODE_SOURCE_DEB} | sudo -E bash -
|
2017-10-02 14:18:38 -07:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y build-essential git unzip wget nodejs ntp cloud-utils
|
|
|
|
|
|
|
|
# add symlink if it doesn't exist
|
|
|
|
[[ ! -f /usr/bin/node ]] && sudo ln -s /usr/bin/nodejs /usr/bin/node
|
|
|
|
echo "<===== install_nodejs"
|
|
|
|
}
|
|
|
|
|
|
|
|
start_pm2_via_systemd() {
|
2017-10-03 07:06:02 -07:00
|
|
|
sudo npm install pm2 -g
|
2017-10-02 14:18:38 -07:00
|
|
|
echo "=====> start_pm2_via_systemd"
|
2017-10-03 07:06:02 -07:00
|
|
|
sudo bash -c "cat > /etc/systemd/system/oracles-pm2.service <<EOF
|
2017-10-02 14:18:38 -07:00
|
|
|
[Unit]
|
|
|
|
Description=oracles pm2 service
|
|
|
|
After=network.target
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=true
|
|
|
|
User=${ADMIN_USERNAME}
|
|
|
|
Group=${ADMIN_USERNAME}
|
|
|
|
Environment=MYVAR=myval
|
|
|
|
WorkingDirectory=/home/${ADMIN_USERNAME}
|
|
|
|
ExecStart=/usr/bin/pm2 ping
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
EOF"
|
|
|
|
sudo systemctl enable oracles-pm2
|
|
|
|
sudo systemctl start oracles-pm2
|
|
|
|
echo "<===== start_pm2_via_systemd"
|
|
|
|
}
|
|
|
|
|
|
|
|
install_dashboard_via_systemd() {
|
|
|
|
echo "=====> install_dashboard_via_systemd"
|
|
|
|
git clone https://github.com/oraclesorg/eth-netstats
|
|
|
|
cd eth-netstats
|
|
|
|
npm install
|
|
|
|
sudo npm install -g grunt-cli
|
|
|
|
grunt
|
|
|
|
echo "[\"${NETSTATS_SECRET}\"]" > ws_secret.json
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
sudo bash -c "cat > /etc/systemd/system/oracles-dashboard.service <<EOF
|
|
|
|
[Unit]
|
|
|
|
Description=oracles dashboard service
|
|
|
|
After=network.target
|
|
|
|
[Service]
|
|
|
|
User=${ADMIN_USERNAME}
|
|
|
|
Group=${ADMIN_USERNAME}
|
|
|
|
Environment=MYVAR=myval
|
|
|
|
WorkingDirectory=/home/${ADMIN_USERNAME}/eth-netstats
|
|
|
|
Restart=always
|
|
|
|
ExecStart=/usr/bin/npm start
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
EOF"
|
|
|
|
sudo systemctl enable oracles-dashboard
|
|
|
|
sudo systemctl start oracles-dashboard
|
|
|
|
echo "<====== install_dashboard_via_systemd"
|
|
|
|
}
|
|
|
|
|
|
|
|
# based on https://get.parity.io
|
|
|
|
install_netstats_via_systemd() {
|
|
|
|
echo "=====> install_netstats_via_systemd"
|
|
|
|
git clone https://github.com/oraclesorg/eth-net-intelligence-api
|
|
|
|
cd eth-net-intelligence-api
|
|
|
|
#sed -i '/"web3"/c "web3": "0.19.x",' package.json
|
|
|
|
npm install
|
|
|
|
sudo npm install pm2 -g
|
|
|
|
|
|
|
|
cat > app.json << EOL
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name" : "netstats_daemon",
|
|
|
|
"script" : "app.js",
|
|
|
|
"log_date_format" : "YYYY-MM-DD HH:mm:SS Z",
|
|
|
|
"error_file" : "/home/${ADMIN_USERNAME}/logs/netstats_daemon.err",
|
|
|
|
"out_file" : "/home/${ADMIN_USERNAME}/logs/netstats_daemon.out",
|
|
|
|
"merge_logs" : false,
|
|
|
|
"watch" : false,
|
|
|
|
"max_restarts" : 100,
|
|
|
|
"exec_interpreter" : "node",
|
|
|
|
"exec_mode" : "fork_mode",
|
|
|
|
"env":
|
|
|
|
{
|
|
|
|
"NODE_ENV" : "production",
|
|
|
|
"RPC_HOST" : "localhost",
|
|
|
|
"RPC_PORT" : "8545",
|
|
|
|
"LISTENING_PORT" : "30300",
|
|
|
|
"INSTANCE_NAME" : "${NODE_FULLNAME}",
|
|
|
|
"CONTACT_DETAILS" : "${NODE_ADMIN_EMAIL}",
|
|
|
|
"WS_SERVER" : "http://localhost:3000",
|
|
|
|
"WS_SECRET" : "${NETSTATS_SECRET}",
|
|
|
|
"VERBOSITY" : 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
EOL
|
|
|
|
cd ..
|
|
|
|
sudo bash -c "cat > /etc/systemd/system/oracles-netstats.service <<EOF
|
|
|
|
[Unit]
|
|
|
|
Description=oracles netstats service
|
|
|
|
After=oracles-pm2.service
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=true
|
|
|
|
User=${ADMIN_USERNAME}
|
|
|
|
Group=${ADMIN_USERNAME}
|
|
|
|
Environment=MYVAR=myval
|
|
|
|
WorkingDirectory=/home/${ADMIN_USERNAME}/eth-net-intelligence-api
|
|
|
|
ExecStart=/usr/bin/pm2 startOrRestart app.json
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
EOF"
|
|
|
|
sudo systemctl enable oracles-netstats
|
|
|
|
sudo systemctl start oracles-netstats
|
|
|
|
echo "<===== install_netstats_via_systemd"
|
|
|
|
}
|
|
|
|
|
|
|
|
install_chain_explorer_via_systemd() {
|
|
|
|
echo "=====> install_chain_explorer_via_systemd"
|
|
|
|
git clone https://github.com/oraclesorg/chain-explorer
|
|
|
|
git clone https://github.com/ethereum/solc-bin chain-explorer/utils/solc-bin
|
|
|
|
cd chain-explorer
|
|
|
|
npm install
|
|
|
|
sudo npm install pm2 -g
|
|
|
|
cat > config.js <<EOF
|
|
|
|
var web3 = require('web3');
|
|
|
|
var net = require('net');
|
|
|
|
|
|
|
|
var config = function () {
|
|
|
|
this.logFormat = "combined";
|
2017-11-16 14:18:26 -08:00
|
|
|
this.ipcPath = "/home/${ADMIN_USERNAME}/parity_data/jsonrpc.ipc";
|
2017-10-02 14:18:38 -07:00
|
|
|
this.provider = new web3.providers.IpcProvider(this.ipcPath, net);
|
|
|
|
this.bootstrapUrl = "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/yeti/bootstrap.min.css";
|
|
|
|
this.names = {
|
2017-10-20 11:45:03 -07:00
|
|
|
"0xdd0bb0e2a1594240fed0c2f2c17c1e9ab4f87126": "Owner",
|
2017-10-02 14:18:38 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config;
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat > app.json << EOF
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name" : "explorer",
|
|
|
|
"script" : "./bin/www",
|
|
|
|
"log_date_format" : "YYYY-MM-DD HH:mm:SS Z",
|
|
|
|
"error_file" : "/home/${ADMIN_USERNAME}/logs/explorer.err",
|
|
|
|
"out_file" : "/home/${ADMIN_USERNAME}/logs/explorer.out",
|
|
|
|
"merge_logs" : false,
|
|
|
|
"watch" : false,
|
|
|
|
"max_restarts" : 100,
|
|
|
|
"exec_interpreter" : "node",
|
|
|
|
"exec_mode" : "fork_mode",
|
|
|
|
"env":
|
|
|
|
{
|
|
|
|
"NODE_ENV" : "production",
|
|
|
|
"PORT" : 4000,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
EOF
|
|
|
|
cd ..
|
|
|
|
sudo bash -c "cat > /etc/systemd/system/oracles-chain-explorer.service <<EOF
|
|
|
|
[Unit]
|
|
|
|
Description=oracles chain explorer service
|
|
|
|
After=oracles-pm2.service
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=true
|
|
|
|
User=${ADMIN_USERNAME}
|
|
|
|
Group=${ADMIN_USERNAME}
|
|
|
|
Environment=MYVAR=myval
|
|
|
|
WorkingDirectory=/home/${ADMIN_USERNAME}/chain-explorer
|
|
|
|
ExecStart=/usr/bin/pm2 startOrRestart app.json
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
EOF"
|
|
|
|
sudo systemctl enable oracles-chain-explorer
|
|
|
|
sudo systemctl start oracles-chain-explorer
|
|
|
|
echo "<===== install_chain_explorer_via_systemd"
|
|
|
|
}
|
|
|
|
|
|
|
|
use_deb_via_systemd() {
|
|
|
|
echo "=====> use_deb_via_systemd"
|
2017-10-24 06:55:41 -07:00
|
|
|
curl -LO "${PARITY_DEB_LOC}"
|
|
|
|
sudo dpkg -i "$(basename ${PARITY_DEB_LOC})"
|
2017-10-02 14:18:38 -07:00
|
|
|
|
|
|
|
sudo bash -c "cat > /etc/systemd/system/oracles-parity.service <<EOF
|
|
|
|
[Unit]
|
|
|
|
Description=oracles parity service
|
|
|
|
After=network.target
|
|
|
|
[Service]
|
|
|
|
User=${ADMIN_USERNAME}
|
|
|
|
Group=${ADMIN_USERNAME}
|
|
|
|
WorkingDirectory=/home/${ADMIN_USERNAME}
|
|
|
|
ExecStart=/usr/bin/parity --config=node.toml --ui-no-validation
|
|
|
|
Restart=always
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
EOF"
|
|
|
|
sudo systemctl enable oracles-parity
|
|
|
|
sudo systemctl start oracles-parity
|
|
|
|
echo "<===== use_deb_via_systemd"
|
|
|
|
}
|
|
|
|
|
|
|
|
configure_logrotate() {
|
|
|
|
echo "=====> configure_logrotate"
|
|
|
|
|
2017-11-01 11:40:12 -07:00
|
|
|
sudo bash -c "cat > /home/${ADMIN_USERNAME}/oracles-logrotate.conf << EOF
|
2017-10-02 14:18:38 -07:00
|
|
|
/home/${ADMIN_USERNAME}/logs/*.log {
|
|
|
|
rotate 10
|
|
|
|
size 200M
|
|
|
|
missingok
|
|
|
|
compress
|
|
|
|
copytruncate
|
|
|
|
dateext
|
|
|
|
dateformat %Y-%m-%d-%s
|
|
|
|
olddir old
|
|
|
|
}
|
2017-11-01 11:40:12 -07:00
|
|
|
|
2017-10-02 14:18:38 -07:00
|
|
|
/home/${ADMIN_USERNAME}/.pm2/pm2.log {
|
|
|
|
su ${ADMIN_USERNAME} ${ADMIN_USERNAME}
|
|
|
|
rotate 10
|
|
|
|
size 200M
|
|
|
|
missingok
|
|
|
|
compress
|
|
|
|
copytruncate
|
|
|
|
dateext
|
|
|
|
dateformat %Y-%m-%d-%s
|
|
|
|
}
|
|
|
|
EOF"
|
2017-11-01 11:40:12 -07:00
|
|
|
|
|
|
|
sudo bash -c "cat > /etc/cron.hourly/oracles-logrotate <<EOF
|
|
|
|
#!/bin/bash
|
2017-11-06 10:37:10 -08:00
|
|
|
/usr/sbin/logrotate /home/${ADMIN_USERNAME}/oracles-logrotate.conf
|
2017-11-01 11:40:12 -07:00
|
|
|
EOF"
|
|
|
|
sudo chmod 755 /etc/cron.hourly/oracles-logrotate
|
|
|
|
|
2017-10-02 14:18:38 -07:00
|
|
|
echo "<===== configure_logrotate"
|
|
|
|
}
|
|
|
|
|
2017-11-16 14:18:26 -08:00
|
|
|
use_bin_via_systemd() {
|
|
|
|
echo "=====> use_bin_via_systemd"
|
|
|
|
curl -o parity -L "${PARITY_BIN_LOC}"
|
|
|
|
chmod +x parity
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libstdc++6
|
|
|
|
sudo bash -c "cat > /etc/systemd/system/oracles-parity.service <<EOF
|
|
|
|
[Unit]
|
|
|
|
Description=oracles parity service
|
|
|
|
After=network.target
|
|
|
|
[Service]
|
|
|
|
User=${ADMIN_USERNAME}
|
|
|
|
Group=${ADMIN_USERNAME}
|
|
|
|
WorkingDirectory=/home/${ADMIN_USERNAME}
|
|
|
|
ExecStart=/home/${ADMIN_USERNAME}/parity --config=node.toml
|
|
|
|
Restart=always
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
EOF"
|
|
|
|
sudo systemctl enable oracles-parity
|
|
|
|
sudo systemctl start oracles-parity
|
|
|
|
echo "<===== use_bin_via_systemd"
|
|
|
|
}
|
|
|
|
|
2017-10-02 14:18:38 -07:00
|
|
|
# MAIN
|
|
|
|
main () {
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
|
|
prepare_homedir
|
2017-11-16 05:49:27 -08:00
|
|
|
setup_ufw
|
2017-10-27 07:44:19 -07:00
|
|
|
increase_ulimit_n
|
2017-10-02 14:18:38 -07:00
|
|
|
install_ntpd
|
|
|
|
install_haveged
|
|
|
|
allocate_swap
|
|
|
|
|
|
|
|
install_nodejs
|
|
|
|
pull_image_and_configs
|
|
|
|
|
2017-11-16 14:18:26 -08:00
|
|
|
if [ "${PARITY_INSTALLATION_MODE}" = "BIN" ]; then
|
|
|
|
use_bin_via_systemd
|
|
|
|
elif [ "${PARITY_INSTALLATION_MODE}" = "DEB" ]; then
|
|
|
|
use_deb_via_systemd
|
|
|
|
else
|
|
|
|
echo "===== invalid PARITY_INSTALLATION_MODE == ${PARITY_INSTALLATION_MODE}. Should be either BIN or DEB"
|
|
|
|
exit 1
|
|
|
|
fi
|
2017-10-02 14:18:38 -07:00
|
|
|
|
|
|
|
start_pm2_via_systemd
|
2017-10-03 07:06:02 -07:00
|
|
|
|
|
|
|
install_dashboard_via_systemd
|
2017-10-02 14:18:38 -07:00
|
|
|
install_netstats_via_systemd
|
|
|
|
install_chain_explorer_via_systemd
|
|
|
|
|
|
|
|
configure_logrotate
|
|
|
|
}
|
|
|
|
|
|
|
|
main
|
2017-11-16 14:18:26 -08:00
|
|
|
echo "========== ${TEMPLATES_BRANCH}/netstats-server/install.sh finished =========="
|