added check for GUI-based machine, if GUI machine then the system will only run auto-fix via GUI so users can see it. Then it will modify the existing cron entry to remove the auto-fix-startup and add the auto-fix-visible entry in startup applications for GUI.
file goes in /.config/autostart on GUI linux machines and runs the 'auto-fix-qortal.sh' script 720 seconds (7 min) after system boot.
This is to enable a VISIBLE run of the auto-fix script, so people know what is going on, and to also make it so that if it DOES have to fix something, it will start qortal VISIBLY.
(considering modifying auto-fix-cron so that the only thing that takes place is the DOWNLOAD of the new script, but not sure yet.)
This script is used to SETUP/INSTALL the auto-fix-qortal script and automation therein on pi devices with pi username.
If your pi device is not running with default pi username, you will need to modify the paths so that they utilize the correct username.
in theory it will also start another terminal, and run the auto-fix-qortal script itself in that new terminal. (I do not know if this will work on headless devices this way, if not I will write another script targeted at headless setup.)
This script will be updated as time goes on, and auto-fix script updates this one, so we want to use this one instead.
Will also test launching in new terminal window in the future.
This script is build to be placed on desktop for linux machines, and will stop/start qortal core for them. This can be used for any linux machine after running auto-fix script from cron and not showing qortal icon, if the user wants to see the icon.
it can also be used by QORTector to start Qortal in a way that shows the icon easily.
Initially the script was moving to Machine-files directory, removed that so it doesn't do that anymore, instead simply moves the files without changing directory so it stays 'home' all the time.
Also added new cron configuration download and setup, and additional script for checking Qortal status when auto-fix script runs via cron, and has work to do (in which case the Qortal icon will not show up)
User can either wait a few hours, then reboot the machine, or use the check-qortal-status script to get the current status of the core after auto-fix runs from cron.
Auto-fix setup to run automatically @reboot and every 5 days at 1:01 AM.