Add mount files and updated paru script

This commit is contained in:
Allen
2023-07-31 20:19:25 -05:00
parent 1a4e95be46
commit 1b145e6d2f
5 changed files with 46 additions and 0 deletions

5
mount-all-vm-sshfs Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
/usr/local/bin/mount-docker-vm-0
/usr/local/bin/mount-arch-vm-0
/usr/local/bin/mount-rpi0

3
mount-arch-vm-0 Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sshfs -o default_permissions admin@10.1.1.181:/data /mnt/sshfs/arch-vm-0

3
mount-docker-vm-0 Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sshfs -o default_permissions admin@10.1.1.151:/data /mnt/sshfs/docker-vm-0

4
mount-rpi0 Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
sshfs -o default_permissions pi@10.1.1.150:/media/NAS0/NAS_Storage/services/rpi0 /mnt/sshfs/rpi0

31
paru-update-all Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# This program updates the system packages using paru
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
NC="\033[0m" # No Color
echo ''
echo -e $GREEN'UPDATING PACKAGES'$NC
echo -e $GREEN'======================================='$NC
paru -Syyu
echo ''
echo -e $GREEN"================================================================="
echo -e "UPDATE COMPLETED!\n"$NC
echo $(cat /etc/pacman.conf | grep "IgnorePkg =")
read -p "DO YOU WANT TO UPDATE DANGEROUS PACKAGES TOO?
RECOMMENDED EVERY 3 MONTHS (y/N): " -i "y" USER_AGREEMENT
if [ "$USER_AGREEMENT" == "y" ]; then
# Install packages bypassing IgnorePgk
sed '/^IgnorePkg/d' /etc/pacman.conf > /tmp/432143214 | paru -Syu --config /tmp/432143214; rm /tmp/432143214
fi
read -p "Do you want to recompile xmonad? (y/N): " -i "y" XMONAD_UPDATE
if [ "$XMONAD_UPDATE" == "y" ]; then
xmonad --recompile
fi
echo -e "\nUPDATE COMPLETED!"$NC