added potentially backup-this-device-script
This commit is contained in:
parent
0346377a76
commit
f8540acd11
23
mint.sh
23
mint.sh
@ -16,6 +16,9 @@ whoami | grep -q ^root$ || read x
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
# Add User to docker group
|
||||||
|
sudo usermod -aG docker $(whoami)
|
||||||
|
|
||||||
# systemupdate
|
# systemupdate
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y dist-upgrade
|
sudo apt-get -y dist-upgrade
|
||||||
@ -47,15 +50,21 @@ do
|
|||||||
sudo rm -rf ${playbook}
|
sudo rm -rf ${playbook}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Execute and chown .xsessionrc if exists
|
echo '
|
||||||
if [ -f ~/.xsessionrc ]
|
#!/bin/bash
|
||||||
|
if [ -f ~/Nextcloud/scripts/backup-this-device.sh ]
|
||||||
then
|
then
|
||||||
sudo chown $(whoami). ~/.xsessionrc
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/Nextcloud/scripts/backup-this-device.sh
|
||||||
sudo chmod 700 ~/.xsessionrc
|
elif [ -f ~/scripts/backup-this-device.sh ]
|
||||||
|
then
|
||||||
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/scripts/backup-this-device.sh
|
||||||
fi
|
fi
|
||||||
|
elif [ -f ~/.scripts/backup-this-device.sh ]
|
||||||
# Add User to docker group
|
then
|
||||||
sudo usermod -aG docker $(whoami)
|
gnome-terminal --hide-menubar --title=BACKUP --geometry=120x35 -- bash ~/.scripts/backup-this-device.sh
|
||||||
|
fi
|
||||||
|
' >~/.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