From 8f11818e0682a6c91f0ccb6ff4f7712ebd3cf419 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 2 Jan 2023 09:59:50 +0100 Subject: [PATCH] Backup-Script only if autologin deactivated --- mint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mint.sh b/mint.sh index c82417d..3b57bef 100644 --- a/mint.sh +++ b/mint.sh @@ -52,7 +52,8 @@ done # Add User to docker group sudo usermod -aG docker $(whoami) -echo '#!/bin/bash +# Backup-Script only if autologin deactivated +grep -qr ^autologin-user= /etc/lightdm || echo '#!/bin/bash if [ -f ~/Nextcloud/scripts/backup-this-device.sh ] then gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh @@ -64,7 +65,7 @@ then gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh fi ' >~/.xsessionrc -chmod 700 ~/.xsessionrc +[ -f ~/.xsessionrc ] && chmod 700 ~/.xsessionrc # Autoupdate flatpak and cinnamon dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true