Backup-Script only if autologin deactivated
This commit is contained in:
parent
b66224ef08
commit
8f11818e06
5
mint.sh
5
mint.sh
@ -52,7 +52,8 @@ done
|
|||||||
# Add User to docker group
|
# Add User to docker group
|
||||||
sudo usermod -aG docker $(whoami)
|
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 ]
|
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
||||||
then
|
then
|
||||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
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
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
||||||
fi
|
fi
|
||||||
' >~/.xsessionrc
|
' >~/.xsessionrc
|
||||||
chmod 700 ~/.xsessionrc
|
[ -f ~/.xsessionrc ] && chmod 700 ~/.xsessionrc
|
||||||
|
|
||||||
# Autoupdate flatpak and cinnamon
|
# Autoupdate flatpak and cinnamon
|
||||||
dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true
|
dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true
|
||||||
|
Loading…
Reference in New Issue
Block a user