mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-03 08:42:31 +01:00
deb-update.bash: add pacman & checkservices
This commit is contained in:
parent
ddf13278bd
commit
4be10493e8
@ -60,6 +60,16 @@ if hash dnf 2> /dev/null; then
|
|||||||
dnf -v "$@" autoremove
|
dnf -v "$@" autoremove
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Arch Linux package management
|
||||||
|
if hash pacman 2> /dev/null; then
|
||||||
|
pacman -Syu
|
||||||
|
|
||||||
|
# weekly cache cleanup service
|
||||||
|
if hash paccache 2> /dev/null; then
|
||||||
|
systemctl enable paccache.timer
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# https://github.com/Homebrew/brew
|
# https://github.com/Homebrew/brew
|
||||||
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
if [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
||||||
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
@ -129,6 +139,12 @@ if hash needrestart 2> /dev/null; then
|
|||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# archlinux-contrib
|
||||||
|
if hash checkservices 2> /dev/null; then
|
||||||
|
checkservices
|
||||||
|
sleep 5
|
||||||
|
fi
|
||||||
|
|
||||||
# Sedric workaround, located in this repo. I trust /root/
|
# Sedric workaround, located in this repo. I trust /root/
|
||||||
if [ -f /root/fixgrub.bash ]; then
|
if [ -f /root/fixgrub.bash ]; then
|
||||||
. /root/fixgrub.bash
|
. /root/fixgrub.bash
|
||||||
|
Loading…
Reference in New Issue
Block a user