moved modification of start script line
Moved the modification of the start script to after the online checks with other script downloads.
This commit is contained in:
parent
c3d86184d5
commit
cd658559a2
@ -21,7 +21,8 @@ TIMESTAMP=`date +%s`
|
|||||||
INTERNET_STATUS="UP"
|
INTERNET_STATUS="UP"
|
||||||
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/settings.json && mv settings.json ~/qortal
|
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/settings.json && mv settings.json ~/qortal
|
||||||
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/check-qortal-status.sh && mv check-qortal-status.sh ~/Desktop && chmod +x ~/Desktop/check-qortal-status.sh
|
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/check-qortal-status.sh && mv check-qortal-status.sh ~/Desktop && chmod +x ~/Desktop/check-qortal-status.sh
|
||||||
fi
|
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh && mv start-modified-memory-args.sh ~/qortal/start.sh && chmod +x ~/qortal/start.sh
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if [ "$INTERNET_STATUS" = "UP" ]; then
|
if [ "$INTERNET_STATUS" = "UP" ]; then
|
||||||
echo "Internet Connection is DOWN, please fix connection and restart device${NC}\n `date +%Y-%m-%dT%H:%M:%S%Z` $((`date +%s`-$TIMESTAMP))";
|
echo "Internet Connection is DOWN, please fix connection and restart device${NC}\n `date +%Y-%m-%dT%H:%M:%S%Z` $((`date +%s`-$TIMESTAMP))";
|
||||||
@ -74,14 +75,10 @@ else
|
|||||||
killall -9 java
|
killall -9 java
|
||||||
sleep 5
|
sleep 5
|
||||||
rm -R db
|
rm -R db
|
||||||
rm start.sh
|
|
||||||
rm qortal.jar
|
rm qortal.jar
|
||||||
rm log.t*
|
rm log.t*
|
||||||
mv ~/qortal.jar .
|
mv ~/qortal.jar .
|
||||||
rm ~/remote.md5 local.md5
|
rm ~/remote.md5 local.md5
|
||||||
curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh
|
|
||||||
mv start-modified-memory-args.sh start.sh
|
|
||||||
chmod +x start.sh
|
|
||||||
./start.sh
|
./start.sh
|
||||||
mkdir ~/qortal/new-scripts
|
mkdir ~/qortal/new-scripts
|
||||||
mkdir ~/qortal/new-scripts/backups
|
mkdir ~/qortal/new-scripts/backups
|
||||||
|
Loading…
x
Reference in New Issue
Block a user