Fix escape codes;

When running certain scripts, sometimes an 'm' character is wrongly
output to the terminal. This PR fixes all instances of this happening.
I've also made 'RD' (red) consistent with 'GN' (green) by removing the
leading 0, and my editor has kindly removed all trailing spaces from
files.
This commit is contained in:
Gavin Laking 2022-10-16 15:30:36 +01:00
parent bfeb4105e9
commit ee5b965cd6
225 changed files with 2043 additions and 2049 deletions

View file

@ -2,11 +2,11 @@
IP=$(hostname -I | awk '{print $1}')
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -40,11 +40,11 @@ done
clear
function header_info {
echo -e "${BL}
______ __ _____
______ __ _____
/ ____/___ ____/ /__ / ___/___ ______ _____ _____
/ / / __ \/ __ / _ \ \__ \/ _ \/ ___/ | / / _ \/ ___/
/ /___/ /_/ / /_/ / __/ ___/ / __/ / | |/ / __/ /
\____/\____/\__,_/\___/ /____/\___/_/ |___/\___/_/
/ /___/ /_/ / /_/ / __/ ___/ / __/ / | |/ / __/ /
\____/\____/\__,_/\___/ /____/\___/_/ |___/\___/_/
${CL}"
}
@ -79,7 +79,7 @@ sudo systemctl enable --now code-server@$USER &>/dev/null
cat <<EOF > ~/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8680
auth: none
password:
password:
cert: false
EOF
sudo systemctl restart code-server@$USER

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -39,11 +39,11 @@ done
clear
function header_info {
echo -e "${BL}
_____ _ _____
/ ____| | |/ ____|
| | _ __ _____ ____| | (___ ___ ___
_____ _ _____
/ ____| | |/ ____|
| | _ __ _____ ____| | (___ ___ ___
| | | __/ _ \ \ /\ / / _ |\___ \ / _ \/ __|
| |____| | | (_) \ V V / (_| |____) | __/ (__
| |____| | | (_) \ V V / (_| |____) | __/ (__
\_____|_| \___/ \_/\_/ \__ _|_____/ \___|\___|
${CL}"
}

View file

@ -3,10 +3,10 @@ set -e
clear
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
while true; do
read -p "This will Update Dashy LXC. Proceed(y/n)?" yn
case $yn in
@ -18,14 +18,14 @@ done
clear
function header_info {
echo -e "${RD}
_____ _
| __ \ | |
| | | | __ _ ___| |__ _ _
_____ _
| __ \ | |
| | | | __ _ ___| |__ _ _
| | | |/ _ / __| _ \| | | |
| |__| | (_| \__ \ | | | |_| |
|_____/ \__,_|___/_| |_|\__, |
UPDATE __/ |
|___/
|___/
${CL}"
}

View file

@ -35,7 +35,7 @@ show_menu(){
read opt
}
option_picked(){
msgcolor=`echo "\033[01;31m"`
msgcolor=`echo "\033[1;31m"`
normal=`echo "\033[00;00m"`
message=${@:-"${normal}Error: No message passed"}
printf "${msgcolor}${message}${normal}\n"

View file

@ -2,11 +2,11 @@
IP=$(hostname -I | awk '{print $1}')
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -41,12 +41,12 @@ clear
function header_info {
echo -e "${DGN}
______ _ _ ____
| ____(_) | | _ \
| |__ _| | ___| |_) |_ __ _____ _____ ___ _ __
______ _ _ ____
| ____(_) | | _ \
| |__ _| | ___| |_) |_ __ _____ _____ ___ _ __
| __| | | |/ _ \ _ <| __/ _ \ \ /\ / / __|/ _ \ __|
| | | | | __/ |_) | | | (_) \ V V /\__ \ __/ |
|_| |_|_|\___|____/|_| \___/ \_/\_/ |___/\___|_|
| | | | | __/ |_) | | | (_) \ V V /\__ \ __/ |
|_| |_|_|\___|____/|_| \___/ \_/\_/ |___/\___|_|
${CL}"
}

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -e
PP=`echo "\e[1;35m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
while true; do
read -p "This will Update Heimdall Dashboard. Proceed(y/n)?" yn
case $yn in
@ -17,7 +17,7 @@ done
clear
function header_info {
echo -e "${PP}
_ _ _ _ _ _ _____ _ _ _
_ _ _ _ _ _ _____ _ _ _
| | | | (_) | | | | | | __ \ | | | | | |
| |__| | ___ _ _ __ ___ __| | __ _| | | | | | | __ _ ___| |__ | |__ ___ __ _ _ __ __| |
| __ |/ _ \ | _ _ \ / _ |/ _ | | | | | | |/ _ / __| _ \| _ \ / _ \ / _ | __/ _ |
@ -61,7 +61,7 @@ VER=$(curl -s https://api.github.com/repos/linuxserver/Heimdall/releases/latest
| awk '{print substr($2, 3, length($2)-4) }')
if [ ! -d "/opt/Heimdall" ]; then
mv Heimdall-${VER} /opt/Heimdall
mv Heimdall-${VER} /opt/Heimdall
else
cp -R Heimdall-${VER}/* /opt/Heimdall
fi
@ -116,4 +116,3 @@ sleep 2
echo -e "${CM}${CL} \r"
echo -en "${GN} Finished! ${CL}\n"

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -38,12 +38,12 @@ done
clear
function header_info {
cat << "EOF"
__ __
/ / / /___ ____ ___ ___ ____ ____ _____ ____
__ __
/ / / /___ ____ ___ ___ ____ ____ _____ ____
/ /_/ / __ \/ __ `__ \/ _ \/ __ \/ __ `/ __ `/ _ \
/ __ / /_/ / / / / / / __/ /_/ / /_/ / /_/ / __/
/_/ /_/\____/_/ /_/ /_/\___/ .___/\__,_/\__, /\___/
/_/ UPDATE /____/
/_/ /_/\____/_/ /_/ /_/\___/ .___/\__,_/\__, /\___/
/_/ UPDATE /____/
EOF
}
@ -63,8 +63,8 @@ msg_info "Updating ${APP}"
if ! command -v pnpm >/dev/null 2>&1; then
npm install -g pnpm &>/dev/null
fi
cd /opt/homepage
systemctl stop homepage
cd /opt/homepage
systemctl stop homepage
git pull --force &>/dev/null
pnpm install &>/dev/null
pnpm build &>/dev/null

View file

@ -3,11 +3,11 @@ set -euo pipefail
shopt -s inherit_errexit nullglob
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -27,10 +27,10 @@ clear
function header_info {
echo -e "${RD}
_ __ _ _____ _
| |/ / | | / ____| |
| / ___ _ __ _ __ ___| | | | | | ___ __ _ _ __
| < / _ \ __| _ \ / _ \ | | | | |/ _ \/ _ | _ \
_ __ _ _____ _
| |/ / | | / ____| |
| / ___ _ __ _ __ ___| | | | | | ___ __ _ _ __
| < / _ \ __| _ \ / _ \ | | | | |/ _ \/ _ | _ \
| \ __/ | | | | | __/ | | |____| | __/ (_| | | | |
|_|\_\___|_| |_| |_|\___|_| \_____|_|\___|\__,_|_| |_|
@ -49,7 +49,7 @@ function msg_ok() {
function check_root() {
if [[ $EUID -ne 0 ]]; then
echo -e "${CROSS}${RD}Error: This script must be ran as the root user.\n${CL}"
echo -e "${CROSS}${RD}Error: This script must be ran as the root user.\n${CL}"
exit 1
else
header_info
@ -69,7 +69,7 @@ function edge_kernel() {
function kernel_info() {
if [[ "$MODE" != "PBS" ]]; then
echo -e "${YW}PVE Version: ${BL}$(pveversion)\n${CL}"
echo -e "${YW}PVE Version: ${BL}$(pveversion)\n${CL}"
fi
if [[ "$current_kernel" == *"pve"* ]]; then
echo -e "${YW}Current Kernel: ${BL}$current_kernel\n${CL}"

View file

@ -19,7 +19,7 @@ apt-get update &>/dev/null
echo -e "\e[1;92m Installing pip3... \e[0m"
apt-get install -y python3-pip &>/dev/null
echo -e "\e[1;92m Installing runlike... \e[0m"
pip3 install runlike &>/dev/null
pip3 install runlike &>/dev/null
fi
echo -e "\e[1;92m Creating Update Script... \e[0m"
if [ -d /root/hass_config ]; then
@ -57,7 +57,7 @@ show_menu(){
read opt
}
option_picked(){
msgcolor=`echo "\033[01;31m"`
msgcolor=`echo "\033[1;31m"`
normal=`echo "\033[00;00m"`
message=${@:-"${normal}Error: No message passed"}
printf "${msgcolor}${message}${normal}\n"
@ -202,7 +202,7 @@ for container in ${CONTAINER_LIST}; do
DOCKER_COMMAND="$(runlike "${container}")"
docker rm --force "${container}"
eval ${DOCKER_COMMAND}
fi
fi
done
EOF
sudo chmod +x /root/update-containers.sh

View file

@ -3,20 +3,20 @@ RELEASE=$(curl -s https://api.github.com/repos/navidrome/navidrome/releases/late
| grep "tag_name" \
| awk '{print substr($2, 3, length($2)-4) }')
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
function update_info {
cat << "EOF"
_ __ _ __
/ | / /___ __ __(_)___/ /________ ____ ___ ___
_ __ _ __
/ | / /___ __ __(_)___/ /________ ____ ___ ___
/ |/ / __ / | / / / __ / ___/ __ \/ __ __ \/ _ \
/ /| / /_/ /| |/ / / /_/ / / / /_/ / / / / / / __/
/_/ |_/\__,_/ |___/_/\__,_/_/ \____/_/ /_/ /_/\___/
/_/ |_/\__,_/ |___/_/\__,_/_/ \____/_/ /_/ /_/\___/
UPDATE
EOF
}
update_info

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -38,12 +38,12 @@ done
clear
function header_info {
echo -e "${YW}
_ _ _____ ____
| \ | | | __ \| _ \
_ _ _____ ____
| \ | | | __ \| _ \
| \| | ___ v3___ ___ | | | | |_) |
| |/ _ \ / __/ _ \| | | | _ <
| |/ _ \ / __/ _ \| | | | _ <
| |\ | (_) | (_| (_) | |__| | |_) |
|_| \_|\___/ \___\___/|_____/|____/
|_| \_|\___/ \___\___/|_____/|____/
UPDATE
${CL}"
}
@ -75,11 +75,11 @@ else
reboot=no
fi
if [ "$reboot" == "yes" ]; then
if [ "$reboot" == "yes" ]; then
msg_info "Rebooting ${APP} LXC"
reboot
fi
if [ "$reboot" == "no" ]; then
if [ "$reboot" == "no" ]; then
msg_ok "Finished Updating ${APP}. Reboot to apply the update."
fi

View file

@ -3,11 +3,11 @@
set -o errexit
show_menu(){
YW=`echo "\033[33m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
echo -e "${RD} Backup your Node-Red flows before running this script!!${CL} \n "
while true; do
read -p "This will Install Node-Red Themes. Proceed(y/n)?" yn
@ -33,7 +33,7 @@ echo -e "${RD} Backup your Node-Red flows before installing any theme!!${CL} \n
}
option_picked(){
msgcolor=`echo "\033[01;31m"`
msgcolor=`echo "\033[1;31m"`
normal=`echo "\033[00;00m"`
message=${@:-"${CL}Error: No message passed"}
printf "${RD}${message}${CL}\n"

View file

@ -3,21 +3,21 @@ RELEASE=$(curl -s https://api.github.com/repos/NginxProxyManager/nginx-proxy-man
| grep "tag_name" \
| awk '{print substr($2, 3, length($2)-4) }') \
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
function update_info {
echo -e "${RD}
_ _ _____ __ __
_ _ _____ __ __
| \ | | | __ \ | \/ |
| \| | | |__) | | \ / |
| | | ___/ | |\/| |
| |\ | | | | | | |
|_| \_| |_| |_| |_|
UPDATE v${RELEASE}
UPDATE v${RELEASE}
${CL}"
}
@ -33,10 +33,10 @@ while true; do
done
clear
update_info
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
shopt -s expand_aliases
alias die='EXIT=$? LINE=$LINENO error_exit'
trap die ERR
@ -63,8 +63,8 @@ echo -e "${CM}${CL} \r"
echo -en "${GN} Stopping Services... "
systemctl stop openresty
systemctl stop npm
echo -e "${CM}${CL} \r"
echo -e "${CM}${CL} \r"
echo -en "${GN} Cleaning Old Files... "
rm -rf /app \
/var/www/html \
@ -173,5 +173,5 @@ TS="$(($(date +%M)-T))"
IP=$(hostname -I | cut -f1 -d ' ')
echo -e "${GN}Successfully Updated Nginx Proxy Manager to ${RD}${RELEASE}${CL} and it took ${RD}${TS} minutes.${CL}
NPM should be reachable at ${BL}http://${IP}:81 ${CL}
"

View file

@ -2,10 +2,10 @@
clear
RELEASE=$(curl -s https://api.github.com/repos/paperless-ngx/paperless-ngx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
YW=`echo "\033[33m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
RETRY_NUM=10
RETRY_EVERY=3
NUM=$RETRY_NUM
@ -31,12 +31,12 @@ function msg_error() {
}
cat << "EOF"
____ __
____ __
/ __ \____ _____ ___ _____/ /__ __________ ____ ____ __ __
/ /_/ / __ `/ __ \/ _ \/ ___/ / _ \/ ___/ ___/___/ __ \/ __ `/ |/_/
/ ____/ /_/ / /_/ / __/ / / / __(__ |__ )___/ / / / /_/ /> <
/_/ \__,_/ .___/\___/_/ /_/\___/____/____/ /_/ /_/\__, /_/|_|
/_/ UPDATE /____/
/ ____/ /_/ / /_/ / __/ / / / __(__ |__ )___/ / / / /_/ /> <
/_/ \__,_/ .___/\___/_/ /_/\___/____/____/ /_/ /_/\__, /_/|_|
/_/ UPDATE /____/
EOF
while true; do

View file

@ -6,10 +6,10 @@ RELEASE=$(curl -s https://api.github.com/repos/photoprism/photoprism/releases/la
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
PP=`echo "\e[1;35m"`
while true; do
@ -23,10 +23,10 @@ done
clear
function header_info {
echo -e "${PP}
_____ _ _ _____ _
| __ \| | | | | __ \ (_)
| |__) | |__ ___ | |_ ___ | |__) | __ _ ___ _ __ ___
| ___/| _ \ / _ \| __/ _ \| ___/ __| / __| _ _ \
_____ _ _ _____ _
| __ \| | | | | __ \ (_)
| |__) | |__ ___ | |_ ___ | |__) | __ _ ___ _ __ ___
| ___/| _ \ / _ \| __/ _ \| ___/ __| / __| _ _ \
| | | | | | (_) | || (_) | | | | | \__ \ | | | | |
|_| |_| |_|\___/ \__\___/|_| |_| |_|___/_| |_| |_|
${RD} UPDATE
@ -100,5 +100,3 @@ sudo systemctl start photoprism
echo -e "${CM}${CL} \n"
echo -e "${GN} Finished ${CL} \n "

View file

@ -3,11 +3,11 @@ set -euo pipefail
shopt -s inherit_errexit nullglob
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -32,10 +32,10 @@ function header_info {
cat << "EOF"
____ ____ _____ ____ __ ____ __ ____
/ __ \/ __ ) ___/ / __ \____ _____/ /_ / _/___ _____/ /_____ _/ / /
/ /_/ / __ \__ \ / /_/ / __ \/ ___/ __/ / // __ \/ ___/ __/ __ `/ / /
/ ____/ /_/ /__/ / / ____/ /_/ (__ ) /_ _/ // / / (__ ) /_/ /_/ / / /
/_/ /_____/____/ /_/ \____/____/\__/ /___/_/ /_/____/\__/\__,_/_/_/
/ /_/ / __ \__ \ / /_/ / __ \/ ___/ __/ / // __ \/ ___/ __/ __ `/ / /
/ ____/ /_/ /__/ / / ____/ /_/ (__ ) /_ _/ // / / (__ ) /_/ /_/ / / /
/_/ /_____/____/ /_/ \____/____/\__/ /___/_/ /_/____/\__/\__,_/_/_/
EOF
}

View file

@ -3,11 +3,11 @@ set -euo pipefail
shopt -s inherit_errexit nullglob
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -39,9 +39,9 @@ function header_info {
echo -e "${RD}
____ _ _____________ ____ __ ____ __ ____
/ __ \ | / / ____/__ / / __ \____ _____/ /_ / _/___ _____/ /_____ _/ / /
/ /_/ / | / / __/ / / / /_/ / __ \/ ___/ __/ / // __ \/ ___/ __/ __ / / /
/ ____/| |/ / /___ / / / ____/ /_/ (__ ) /_ _/ // / / (__ ) /_/ /_/ / / /
/_/ |___/_____/ /_/ /_/ \____/____/\__/ /___/_/ /_/____/\__/\__,_/_/_/
/ /_/ / | / / __/ / / / /_/ / __ \/ ___/ __/ / // __ \/ ___/ __/ __ / / /
/ ____/| |/ / /___ / / / ____/ /_/ (__ ) /_ _/ // / / (__ ) /_/ /_/ / / /
/_/ |___/_____/ /_/ /_/ \____/____/\__/ /___/_/ /_/____/\__/\__,_/_/_/
${CL}"
}

View file

@ -12,17 +12,17 @@ done
clear
function header_info {
echo -e "
_____ _____ _ _
_____ _____ _ _
/ ____| __ \| | | |
| | | |__) | | | |
| | | ___/| | | |
| |____| | | |__| |
\_____|_| \____/
\_____|_| \____/
Scaling Governors
"
}
show_menu(){
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
GN=`echo "\033[32m"`
BL=`echo "\033[36m"`
YW=`echo "\033[33m"`
@ -41,7 +41,7 @@ header_info
echo -e "\n${YW}Available CPU Scaling Governors
${BL}${ACSG}${CL}"
echo -e "\n${YW}Current CPU Scaling Governor
${BL}${CCSG}${CL}"
printf "\n ${fgred}Only Select Available CPU Scaling Governors From Above${CL}\n \n"

View file

@ -3,20 +3,20 @@ RELEASE=$(curl -s https://api.github.com/repos/zadam/trilium/releases/latest \
| grep "tag_name" \
| awk '{print substr($2, 3, length($2)-4) }')
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
function update_info {
cat << "EOF"
______ _ ___
/_ __/____(_) (_)_ ______ ___
______ _ ___
/_ __/____(_) (_)_ ______ ___
/ / / ___/ / / / / / / __ `__ \
/ / / / / / / / /_/ / / / / / /
/_/ /_/ /_/_/_/\__,_/_/ /_/ /_/
/_/ /_/ /_/_/_/\__,_/_/ /_/ /_/
UPDATE
EOF
}
update_info

View file

@ -1,10 +1,10 @@
#!/usr/bin/env bash
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
APP="UniFi Update"
while true; do
read -p "This will run ${APP}. Proceed(y/n)?" yn
@ -17,9 +17,9 @@ done
clear
function header_info {
echo -e "${RD}
_ _ _ ______ _
_ _ _ ______ _
| | | | (_) ____(_)
| | | |_ __ _| |__ _
| | | |_ __ _| |__ _
| | | | _ \| | __| | |
| |__| | | | | | | | |
\____/|_| |_|_|_| |_|
@ -30,4 +30,3 @@ ${CL}"
header_info
sleep 3
wget -qL https://get.glennr.nl/unifi/update/unifi-update.sh && bash unifi-update.sh

View file

@ -2,10 +2,10 @@
set -e
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
while true; do
read -p "This Will Update All LXC Containers. Proceed(y/n)?" yn
case $yn in
@ -17,11 +17,11 @@ done
clear
function header_info {
echo -e "${BL}
_ _ _____ _____ _______ ______
_ _ _____ _____ _______ ______
| | | | __ \| __ \ /\|__ __| ____|
| | | | |__) | | | | / \ | | | |__
| | | | ___/| | | |/ /\ \ | | | __|
| |__| | | | |__| / ____ \| | | |____
| | | | |__) | | | | / \ | | | |__
| | | | ___/| | | |/ /\ \ | | | __|
| |__| | | | |__| / ____ \| | | |____
\____/|_| |_____/_/ \_\_| |______|
${CL}"
@ -49,7 +49,7 @@ fi
for container in $containers
do
status=`pct status $container`
if [ "$skip" == "no" ]; then
if [ "$skip" == "no" ]; then
if [ "$status" == "status: stopped" ]; then
echo -e "${BL}[Info]${GN} Starting${BL} $container ${CL} \n"
pct start $container
@ -61,12 +61,12 @@ do
elif [ "$status" == "status: running" ]; then
update_container $container
fi
fi
fi
if [ "$skip" == "yes" ]; then
if [ "$status" == "status: running" ]; then
update_container $container
fi
fi
fi
done; wait
echo -e "${GN} Finished, All Containers Updated. ${CL} \n"

View file

@ -2,11 +2,11 @@
LATEST=$(curl -sL https://api.github.com/repos/louislam/uptime-kuma/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
YW=`echo "\033[33m"`
BL=`echo "\033[36m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BGN=`echo "\033[4;92m"`
GN=`echo "\033[1;92m"`
DGN=`echo "\033[32m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
BFR="\\r\\033[K"
HOLD="-"
CM="${GN}${CL}"
@ -22,14 +22,14 @@ done
clear
function header_info {
echo -e "${DGN}
_ _ _ _ _ __
| | | | | | (_) | |/ /
| | | |_v3_ | |_ _ _ __ ___ ___ | ' /_ _ _ __ ___ __ _
_ _ _ _ _ __
| | | | | | (_) | |/ /
| | | |_v3_ | |_ _ _ __ ___ ___ | ' /_ _ _ __ ___ __ _
| | | | _ \| __| | _ _ \ / _ \ | <| | | | _ _ \ / _ |
| |__| | |_) | |_| | | | | | | __/ | . \ |_| | | | | | | (_| |
\____/| .__/ \__|_|_| |_| |_|\___| |_|\_\__,_|_| |_| |_|\__,_|
| |
|_| UPDATE
| |
|_| UPDATE
${CL}"
}

View file

@ -3,20 +3,20 @@ VAULT=$(curl -s https://api.github.com/repos/dani-garcia/vaultwarden/releases/la
| grep "tag_name" \
| awk '{print substr($2, 2, length($2)-3) }')
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
function update_info {
echo -e "${BL}
__ __ _ _ _
\ \ / / | | | | |
\ \ / /_ _ _ _| | |___ ____ _ _ __ __| | ___ _ __
\ \/ / _ | | | | | __\ \ /\ / / _ | __/ _ |/ _ \ _ \
__ __ _ _ _
\ \ / / | | | | |
\ \ / /_ _ _ _| | |___ ____ _ _ __ __| | ___ _ __
\ \/ / _ | | | | | __\ \ /\ / / _ | __/ _ |/ _ \ _ \
\ / (_| | |_| | | |_ \ V V / (_| | | | (_| | __/ | | |
\/ \__,_|\__,_|_|\__| \_/\_/ \__,_|_| \__,_|\___|_| |_|
${VAULT} UPDATE
${VAULT} UPDATE
${CL}"
}

View file

@ -3,20 +3,20 @@ VWRELEASE=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/relea
| grep "tag_name" \
| awk '{print substr($2, 2, length($2)-3) }')
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
function update_info {
echo -e "${BL}
__ __ _ _ _
\ \ / / | | | | |
\ \ /\ / /__| |__ ________ ____ _ _ _| | |_
__ __ _ _ _
\ \ / / | | | | |
\ \ /\ / /__| |__ ________ ____ _ _ _| | |_
\ \/ \/ / _ \ _ \______\ \ / / _ | | | | | __|
\ /\ / __/ |_) | \ V / (_| | |_| | | |_
\ /\ / __/ |_) | \ V / (_| | |_| | | |_
\/ \/ \___|_.__/ \_/ \__,_|\__,_|_|\__|
${VWRELEASE} UPDATE
${VWRELEASE} UPDATE
${CL}"
}
update_info
@ -37,7 +37,7 @@ echo -e "${GN} Updating to ${VWRELEASE}... ${CL}"
curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$VWRELEASE/bw_web_$VWRELEASE.tar.gz &>/dev/null
if [ -d "/var/lib/vaultwarden" ]; then
tar -xzf bw_web_$VWRELEASE.tar.gz -C /var/lib/vaultwarden/ &>/dev/null
else
else
tar -zxf bw_web_$VWRELEASE.tar.gz -C /opt/vaultwarden/ &>/dev/null
fi

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
YW=`echo "\033[33m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
CM='\xE2\x9C\x94\033'
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
while true; do
read -p "This will Install Webmin, Proceed(y/n)?" yn
case $yn in

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
set -e
YW=`echo "\033[33m"`
RD=`echo "\033[01;31m"`
RD=`echo "\033[1;31m"`
BL=`echo "\033[36m"`
GN=`echo "\033[1;92m"`
CL=`echo "\033[m"`
CL=`echo "\033[0m"`
CM="${GN}${CL}"
CROSS="${RD}${CL}"
BFR="\\r\\033[K"
@ -28,11 +28,11 @@ clear
cat << "EOF"
_____ _______ __ ______
/__ /_ ______ __ _____ / / ___/ / / / / _/
/ /| | /| / / __ `/ | / / _ \ __ / /\__ \ / / / // /
/ /_| |/ |/ / /_/ /| |/ / __/ / /_/ /___/ / / /_/ // /
/____/__/|__/\__,_/ |___/\___/ \____//____/ \____/___/
/ /| | /| / / __ `/ | / / _ \ __ / /\__ \ / / / // /
/ /_| |/ |/ / /_/ /| |/ / __/ / /_/ /___/ / / /_/ // /
/____/__/|__/\__,_/ |___/\___/ \____//____/ \____/___/
UPDATE
EOF
while true; do