Backup-Script only if autologin deactivated

This commit is contained in:
olli 2023-01-02 09:59:50 +01:00
parent b66224ef08
commit 8f11818e06

View File

@ -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