mint.sh aktualisiert

This commit is contained in:
olli 2023-07-18 14:40:26 +02:00
parent f28cb07947
commit 3d52586eae

10
mint.sh
View File

@ -53,7 +53,6 @@ sudo pip install ansible
# install mscore fonts
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ttf-mscorefonts-installer
# get upstream release vars (needed for docker ubuntu repos)
. /etc/upstream-release/lsb-release
@ -89,12 +88,13 @@ defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
# Add User to docker group
sudo usermod -aG docker ${$defaultuser}
# Backup-Script only if autologin deactivated
# Personal settings with .xsessionrc
sudo cat <<EOF >${defaultuserhome}/.xsessionrc
#!/bin/bash
# Backup only if autologin deactivated
if ! grep -qr ^autologin-user= /etc/lightdm
then
cat <<EOF >${defaultuserhome}/.xsessionrc
#!/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
@ -105,6 +105,7 @@ elif [ -f ~/.scripts/backup-this-device.sh ]
then
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
fi
fi
# Autoupdate flatpak and cinnamon
dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true
@ -137,4 +138,3 @@ EOF
chmod 700 "${defaultuserhome}"/.xsessionrc
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
fi