X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=blobdiff_plain;f=start;fp=start;h=35624d1b9e8e2e9c02e0462aed8e8ce2635df675;hp=e0d0bc987313291e1aa4016d1ff845d671e45587;hb=d0439647dfc60efce32e0a13b0ec02428ba412cf;hpb=ce78ceeaab08527a924cdf92b90ce89e8db76c8b diff --git a/start b/start index e0d0bc9..35624d1 100755 --- a/start +++ b/start @@ -7,7 +7,7 @@ if [[ $PID != *[!0-9]* ]]; then fi -electrum_config="/etc/electrum.conf" +electrum_config="electrum.conf" if [ ! -f $electrum_config ]; then echo "$electrum_config does not exist" @@ -24,15 +24,15 @@ fi rmdir $path --ignore-fail-on-non-empty -if [ ! -d $path ]; then - echo "Database not found in $path." - read -p "Do you want to download it from the Electrum foundry to $path ? " -n 1 -r - echo - if [[ $REPLY =~ ^[Yy]$ ]]; then - mkdir -p $path - wget -O - "http://foundry.electrum.org/leveldb-dump/electrum-fulltree-100-latest.tar.gz" | tar --extract --gunzip --strip-components 1 --directory $path --file - - fi -fi +#if [ ! -d $path ]; then +# echo "Database not found in $path." +# read -p "Do you want to download it from the Electrum foundry to $path ? " -n 1 -r +# echo +# if [[ $REPLY =~ ^[Yy]$ ]]; then +# mkdir -p $path +# wget -O - "http://foundry.electrum.org/leveldb-dump/electrum-fulltree-100-latest.tar.gz" | tar --extract --gunzip --strip-components 1 --directory $path --file - +# fi +#fi echo "Starting server as daemon" -nohup /usr/bin/python -u server.py &> /var/log/electrum.log & +nohup /usr/bin/python -u server.py &> electrum.log &