Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated script: new wallet version + minor optimizations #36

Merged
merged 1 commit into from
Dec 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions pacglobal-mn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ set -e

export LC_ALL="en_US.UTF-8"

binary_url="https://github.com/PACGlobalOfficial/PAC/releases/download/8f4ed61d4/pacglobal-v0.14.0.4-8f4ed61d4-lin64.tgz"
file_name="pacglobal-v0.14.0.4-8f4ed61d4-lin64"
binary_url="https://github.com/PACGlobalOfficial/PAC/releases/download/b5cdfa551/pacglobal-v0.14.0.4-b5cdfa551-lin64.tgz"
file_name="pacglobal-v0.14.0.4-b5cdfa551-lin64"
extension=".tgz"

echo ""
Expand Down Expand Up @@ -34,7 +34,8 @@ echo ""
echo "Running this script on Ubuntu 18.04 LTS or newer is highly recommended."

sudo apt-get -y update
sudo apt-get -y install git python virtualenv ufw pwgen
sudo apt-get -y upgrade
sudo apt-get -y install ufw pwgen

echo ""
echo "###############################"
Expand Down Expand Up @@ -71,6 +72,7 @@ if test -e "$file_name$extension"; then
echo "Unpacking PACGlobal distribution"
tar -xzvf $file_name$extension
rm -r $file_name$extension
rm -r PACGlobal
mv -v $file_name PACGlobal
cd PACGlobal
chmod +x pacglobald
Expand Down Expand Up @@ -144,7 +146,7 @@ ExecStop=-/root/PACGlobal/pacglobal-cli -conf=/root/.PACGlobal/pacglobal.conf \
Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=2s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
Expand Down Expand Up @@ -178,4 +180,4 @@ cd ~/PACGlobal
./pacglobal-cli getinfo

echo ""
echo "Your masternode server is ready!"
echo "Your masternode wallet on the server has been setup and will be ready when the syncing is done!"