mint.sh aktualisiert
This commit is contained in:
parent
f28cb07947
commit
3d52586eae
26
mint.sh
26
mint.sh
@ -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,21 +88,23 @@ 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
|
||||
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
||||
then
|
||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
||||
elif [ -f ~/scripts/backup-this-device.sh ]
|
||||
then
|
||||
elif [ -f ~/scripts/backup-this-device.sh ]
|
||||
then
|
||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/scripts/backup-this-device.sh
|
||||
elif [ -f ~/.scripts/backup-this-device.sh ]
|
||||
then
|
||||
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
|
||||
@ -135,6 +136,5 @@ dconf write /org/nemo/preferences/default-folder-viewer "'list-view'"
|
||||
dconf write /org/nemo/preferences/show-location-entry true
|
||||
EOF
|
||||
|
||||
chmod 700 "${defaultuserhome}"/.xsessionrc
|
||||
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
|
||||
fi
|
||||
chmod 700 "${defaultuserhome}"/.xsessionrc
|
||||
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
|
||||
|
Loading…
Reference in New Issue
Block a user