This commit is contained in:
crowetic 2025-03-25 13:16:05 -07:00
parent 01d3c939de
commit a0175904bc
2 changed files with 11 additions and 13 deletions

View File

@ -191,13 +191,11 @@ setup_raspi_cron() {
mkdir -p "${HOME}/backups/cron-backups" mkdir -p "${HOME}/backups/cron-backups"
crontab -l > "${HOME}/backups/cron-backups/crontab-backup-$(date +%Y%m%d%H%M%S)" 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" echo -e "${YELLOW}Checking if autostart desktop shortcut exists to avoid double-launch...${NC}\n"
shopt -s nullglob if find "${HOME}/.config/autostart" -maxdepth 1 -name "start-qortal*.desktop" | grep -q .; then
desktop_files=(${HOME}/.config/autostart/start-qortal*.desktop)
shopt -u nullglob
if [ ${#desktop_files[@]} -gt 0 ]; then
echo -e "${RED}Autostart desktop entry found! Using GUI-safe auto-fix cron only.${NC}\n" 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 curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/auto-fix-GUI-cron
crontab auto-fix-GUI-cron crontab auto-fix-GUI-cron

View File

@ -28,7 +28,7 @@ Type=Directory
EOL EOL
sudo apt update 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 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 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