mint.sh aktualisiert
This commit is contained in:
parent
f28cb07947
commit
3d52586eae
32
mint.sh
32
mint.sh
@ -53,7 +53,6 @@ sudo pip install ansible
|
|||||||
# install mscore fonts
|
# install mscore fonts
|
||||||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
|
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
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install ttf-mscorefonts-installer
|
||||||
|
|
||||||
# get upstream release vars (needed for docker ubuntu repos)
|
# get upstream release vars (needed for docker ubuntu repos)
|
||||||
. /etc/upstream-release/lsb-release
|
. /etc/upstream-release/lsb-release
|
||||||
|
|
||||||
@ -89,21 +88,23 @@ defaultuserhome=$(getent passwd 1000 | cut -d: -f6)
|
|||||||
# Add User to docker group
|
# Add User to docker group
|
||||||
sudo usermod -aG docker ${$defaultuser}
|
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
|
if ! grep -qr ^autologin-user= /etc/lightdm
|
||||||
then
|
then
|
||||||
cat <<EOF >${defaultuserhome}/.xsessionrc
|
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
||||||
#!/bin/bash
|
then
|
||||||
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
||||||
then
|
elif [ -f ~/scripts/backup-this-device.sh ]
|
||||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
then
|
||||||
elif [ -f ~/scripts/backup-this-device.sh ]
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/scripts/backup-this-device.sh
|
||||||
then
|
elif [ -f ~/.scripts/backup-this-device.sh ]
|
||||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/scripts/backup-this-device.sh
|
then
|
||||||
elif [ -f ~/.scripts/backup-this-device.sh ]
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
||||||
then
|
fi
|
||||||
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Autoupdate flatpak and cinnamon
|
# 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
|
dconf write /org/nemo/preferences/show-location-entry true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod 700 "${defaultuserhome}"/.xsessionrc
|
chmod 700 "${defaultuserhome}"/.xsessionrc
|
||||||
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
|
chown ${defaultuser}. "${defaultuserhome}"/.xsessionrc
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user