Add update script for the apps installed who can't be updated by the regular apt or snap way

This commit is contained in:
Mylloon 2022-01-05 12:52:27 +01:00
parent 9eaa9dc78b
commit 48de097492
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 28 additions and 5 deletions

View file

@ -65,10 +65,10 @@ fish -c "abbr untgz 'tar -xvzf'"
fish -c "abbr - 'cd -'" fish -c "abbr - 'cd -'"
if grep "WSL" /proc/version > /dev/null; # only for WSL if grep "WSL" /proc/version > /dev/null; # only for WSL
then then
fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y'" fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt full-upgrade -y && sudo apt autoremove -y && wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/update.sh -O tmp.sh && bash tmp.sh; rm tmp.sh'"
fish -c "abbr d 'explorer.exe .'" fish -c "abbr d 'explorer.exe .'"
else # if regular distro (i.e. Ubuntu) else # if regular distro (i.e. Ubuntu)
fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh'" fish -c "abbr bigupdate 'sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo snap refresh && wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/update.sh -O tmp.sh && bash tmp.sh; rm tmp.sh'"
fish -c "abbr d 'nautilus . -w &> /dev/null & disown'" fish -c "abbr d 'nautilus . -w &> /dev/null & disown'"
fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'" fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'"
fi fi

View file

@ -14,4 +14,4 @@ sudo snap install --dangerous obsidian.snap
# Removing package # Removing package
rm obsidian.snap rm obsidian.snap
echo -e "\nObsidian installed! 🎉" echo -e "\nObsidian installed or updated! 🎉"

View file

@ -7,4 +7,4 @@ sudo apt install ./onlyoffice.deb -y
# Removing package # Removing package
rm onlyoffice.deb rm onlyoffice.deb
echo -e "\nOnlyOffice installed! 🎉" echo -e "\nOnlyOffice installed or updated! 🎉"

View file

@ -7,4 +7,4 @@ sudo apt install ./parsec.deb -y
# Removing package # Removing package
rm parsec.deb rm parsec.deb
echo -e "\nParsec installed! 🎉" echo -e "\nParsec installed or updated! 🎉"

23
update.sh Normal file
View file

@ -0,0 +1,23 @@
if grep "Ubuntu" /proc/version > /dev/null || grep "WSL" /proc/version > /dev/null;
then
# Update Java
fish -c "sdk update"
fish -c "sdk upgrade"
echo -e "\nJava updated! 🎉"
if grep "Ubuntu" /proc/version > /dev/null;
then
# Update Obsidian
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installObsidian.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
# Update OnlyOffice
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installOnlyOffice.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
# Update Parsec
wget -q --show-progress https://git.kennel.ml/Anri/myLinuxConfiguration/raw/branch/main/installParsec.sh -O tmp.sh && bash tmp.sh; rm tmp.sh
fi
else
echo "Your distribution isn't supported."
fi