fix sinclairMATE image
This script will make changes to sinclairMATE image to use new start script and modify crontab to restart Qortal Core every 5 days.
This commit is contained in:
parent
5c3b3df41c
commit
cdb5988996
28
sinclair-mate-fixes.sh
Normal file
28
sinclair-mate-fixes.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo BACKING UP CRONTAB
|
||||
|
||||
crontab -l > cron.backup
|
||||
|
||||
echo MAKING CHANGES TO QORTAL START SCRIPT
|
||||
|
||||
cd /home/pi/qortal
|
||||
wget https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh
|
||||
mv start.sh original-start-script-sh
|
||||
mv start-modified-memory-args.sh start.sh
|
||||
chmod +x start.sh
|
||||
|
||||
cd /home/pi
|
||||
|
||||
echo DOWNLOADING AUTO-RESTART SCRIPT AND CONFIGURING CRON TO USE IT
|
||||
|
||||
wget https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/restart-qortal.sh
|
||||
chmod +x restart-qortal.sh
|
||||
wget https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/restart-cron
|
||||
crontab restart-cron
|
||||
|
||||
echo STOPPING QORTAL AND STARTING WITH NEW SCRIPT
|
||||
|
||||
cd /home/pi/qortal
|
||||
./stop.sh && sleep 10 && killall -9 java
|
||||
./start.sh
|
Loading…
x
Reference in New Issue
Block a user