fix
This commit is contained in:
		@@ -191,13 +191,11 @@ setup_raspi_cron() {
 | 
			
		||||
    mkdir -p "${HOME}/backups/cron-backups"
 | 
			
		||||
    crontab -l > "${HOME}/backups/cron-backups/crontab-backup-$(date +%Y%m%d%H%M%S)"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
	echo -e "${YELLOW}Checking if autostart desktop shortcut exists to avoid double-launch...${NC}\n"
 | 
			
		||||
 | 
			
		||||
    shopt -s nullglob
 | 
			
		||||
    desktop_files=(${HOME}/.config/autostart/start-qortal*.desktop)
 | 
			
		||||
    shopt -u nullglob
 | 
			
		||||
 | 
			
		||||
    if [ ${#desktop_files[@]} -gt 0 ]; then
 | 
			
		||||
	if find "${HOME}/.config/autostart" -maxdepth 1 -name "start-qortal*.desktop" | grep -q .; then
 | 
			
		||||
	    echo -e "${RED}Autostart desktop entry found! Using GUI-safe auto-fix cron only.${NC}\n"
 | 
			
		||||
	    curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/auto-fix-GUI-cron
 | 
			
		||||
	    crontab auto-fix-GUI-cron
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,7 @@ Type=Directory
 | 
			
		||||
EOL
 | 
			
		||||
 | 
			
		||||
sudo apt update
 | 
			
		||||
sudo apt -y --purge remove ubuntu-advantage-tools ubuntu-pro-client*
 | 
			
		||||
sudo apt -y --purge remove ubuntu-advantage-tools ubuntu-pro-client ubuntu-pro-client-li0n
 | 
			
		||||
sudo apt -y upgrade
 | 
			
		||||
sudo apt -y install git jq gnome-software unzip vim curl openjdk-21-jre yaru-theme-icon yaru-theme-gtk yaru-theme-unity zlib1g-dev vlc chromium-browser p7zip-full libfuse2 htop net-tools bpytop ffmpeg sysbench smartmontools ksnip xsensors fonts-symbola lm-sensors cinnamon-desktop-environment
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user