From cb5ccc12910d885519868b8558e388c4f0d5b1dd Mon Sep 17 00:00:00 2001 From: sc-idevops Date: Fri, 24 Mar 2023 04:01:07 -0400 Subject: [PATCH] minor changes --- scripts/archive/fixNXDomain.zsh | 3 --- scripts/firefox.sh | 4 ++-- scripts/server_bin/gif_purge.sh | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100755 scripts/archive/fixNXDomain.zsh diff --git a/scripts/archive/fixNXDomain.zsh b/scripts/archive/fixNXDomain.zsh deleted file mode 100755 index 7b070ce..0000000 --- a/scripts/archive/fixNXDomain.zsh +++ /dev/null @@ -1,3 +0,0 @@ -echo "relinking resolv.conf" -sudo mv /etc/resolv.conf /etc/resolv.conf.bak -sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf diff --git a/scripts/firefox.sh b/scripts/firefox.sh index 91c7500..0dde430 100755 --- a/scripts/firefox.sh +++ b/scripts/firefox.sh @@ -3,7 +3,7 @@ help() { echo "Usage: $(basename $0) [-e] Installs Firefox ESR [-f] Installs Flatpak Firefox - [-r] Installs regular Firefox and Pins It's Priority + [-d] Installs Firefox from the PPA and Pins it's Priority in apt [-p] Purges the Snapd daemon from the system. Use if you don't want snaps anymore period." exit 1 } @@ -34,7 +34,7 @@ while getopts 'efrp:h' opt; do flatpak install flathub org.mozilla.firefox ;; - r) + d) echo "Installing Regular Firefox" add_ppa sudo apt-get -y install -t 'o=LP-PPA-mozillateam' firefox diff --git a/scripts/server_bin/gif_purge.sh b/scripts/server_bin/gif_purge.sh index fc90954..e413d3d 100755 --- a/scripts/server_bin/gif_purge.sh +++ b/scripts/server_bin/gif_purge.sh @@ -5,7 +5,7 @@ fdfind -e mp4 | while read i; do length=$(mediainfo --Inform="Video;%Duration%" "$i") if [[ $length -le 4500 ]]; then - rm "$i" + trash "$i" #kioclient move $i "trash:/" fi -done \ No newline at end of file +done