Add update script for the apps installed who can't be updated by the regular apt or snap way
This commit is contained in:
parent
9eaa9dc78b
commit
48de097492
5 changed files with 28 additions and 5 deletions
|
@ -65,10 +65,10 @@ fish -c "abbr untgz 'tar -xvzf'"
|
|||
fish -c "abbr - 'cd -'"
|
||||
if grep "WSL" /proc/version > /dev/null; # only for WSL
|
||||
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 .'"
|
||||
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 spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'"
|
||||
fi
|
||||
|
|
|
@ -14,4 +14,4 @@ sudo snap install --dangerous obsidian.snap
|
|||
# Removing package
|
||||
rm obsidian.snap
|
||||
|
||||
echo -e "\nObsidian installed! 🎉"
|
||||
echo -e "\nObsidian installed or updated! 🎉"
|
||||
|
|
|
@ -7,4 +7,4 @@ sudo apt install ./onlyoffice.deb -y
|
|||
# Removing package
|
||||
rm onlyoffice.deb
|
||||
|
||||
echo -e "\nOnlyOffice installed! 🎉"
|
||||
echo -e "\nOnlyOffice installed or updated! 🎉"
|
||||
|
|
|
@ -7,4 +7,4 @@ sudo apt install ./parsec.deb -y
|
|||
# Removing package
|
||||
rm parsec.deb
|
||||
|
||||
echo -e "\nParsec installed! 🎉"
|
||||
echo -e "\nParsec installed or updated! 🎉"
|
||||
|
|
23
update.sh
Normal file
23
update.sh
Normal 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
|
Reference in a new issue