Compare commits

...

14 Commits

Author SHA1 Message Date
tteckster 754dec41fc
Update alpine-adguard-v5.sh 2023-03-19 13:51:09 -04:00
tteckster 79e7f7b38c
Update alpine-docker-v5.sh 2023-03-19 13:50:45 -04:00
tteckster cab8db92bb
Update alpine-vaultwarden-v5.sh 2023-03-19 13:50:21 -04:00
tteckster 0647dc67a1
Update alpine-zigbee2mqtt-v5.sh 2023-03-19 13:49:59 -04:00
tteckster df68e1fa78
Update alpine-grafana-v5.sh
fix timezone
2023-03-19 13:49:00 -04:00
tteckster 3d3161b1e7
Created Update/Config for Alpine-Grafana (#1191) (#1192)
Feature to configure the IP address on which the service is listening has been implemented

Co-authored-by: nicedevil007
2023-03-19 13:01:11 -04:00
tteckster 766adccf7a
Update alpine-zigbee2mqtt-v5.sh 2023-03-19 09:46:12 -04:00
tteckster 2a6d09477f
Update alpine-vaultwarden-v5.sh 2023-03-19 09:45:13 -04:00
tteckster de1d37ebf2
Update alpine-grafana-v5.sh 2023-03-19 09:44:28 -04:00
tteckster 939c9fe7d2
Update alpine-docker-v5.sh 2023-03-19 09:43:48 -04:00
tteckster 96e040fcb4
Update alpine-adguard-v5.sh 2023-03-19 09:42:55 -04:00
tteckster 243b65695c
Update alpine-grafana-v5.sh 2023-03-19 09:32:45 -04:00
tteckster bbfabfc8f6
Update alpine-vaultwarden-v5.sh 2023-03-19 09:31:48 -04:00
tteckster 187befbb59
Update alpine-adguard-v5.sh 2023-03-19 09:21:05 -04:00
5 changed files with 78 additions and 11 deletions

View File

@ -27,7 +27,6 @@ var_os="alpine"
var_version="3.17"
NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install"
timezone=$(cat /etc/timezone)
INTEGER='^[0-9]+([.][0-9]+)?$'
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
@ -339,6 +338,7 @@ function install_script() {
ARCH_CHECK
PVE_CHECK
NEXTID=$(pvesh get /cluster/nextid)
timezone=$(cat /etc/timezone)
header_info
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
header_info
@ -441,6 +441,7 @@ if ! command -v pveversion >/dev/null 2>&1; then
else
update_script
fi
fi
if [ "$VERB" == "yes" ]; then set -x; fi
if [ "$CT_TYPE" == "1" ]; then

View File

@ -27,7 +27,6 @@ var_os="alpine"
var_version="3.17"
NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install"
timezone=$(cat /etc/timezone)
INTEGER='^[0-9]+([.][0-9]+)?$'
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
@ -339,6 +338,7 @@ function install_script() {
ARCH_CHECK
PVE_CHECK
NEXTID=$(pvesh get /cluster/nextid)
timezone=$(cat /etc/timezone)
header_info
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
header_info
@ -352,6 +352,7 @@ header_info
}
function update_script() {
header_info
normal=$(echo "\033[m")
menu=$(echo "\033[36m")
number=$(echo "\033[33m")

View File

@ -27,7 +27,6 @@ var_os="alpine"
var_version="3.17"
NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install"
timezone=$(cat /etc/timezone)
INTEGER='^[0-9]+([.][0-9]+)?$'
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
@ -339,6 +338,7 @@ function install_script() {
ARCH_CHECK
PVE_CHECK
NEXTID=$(pvesh get /cluster/nextid)
timezone=$(cat /etc/timezone)
header_info
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
header_info
@ -353,11 +353,72 @@ header_info
function update_script() {
header_info
msg_info "Updating ${APP} LXC"
normal=$(echo "\033[m")
menu=$(echo "\033[36m")
number=$(echo "\033[33m")
fgred=$(echo "\033[31m")
LXCIP=$(ip a s dev eth0 | awk '/inet / {print $2}' | cut -d/ -f1)
printf "\n${menu}*********************************************${normal}\n"
printf "${menu}**${number} 1)${normal} Update LXC OS + Grafana \n"
printf "${menu}**${number} 2)${normal} Allow 0.0.0.0 for listening \n"
printf "${menu}**${number} 3)${normal} Allow only ${LXCIP} for listening \n"
printf "${menu}*********************************************${normal}\n"
printf "Please choose an option from the menu, or ${fgred}x${normal} to exit."
read opt
while [ "$opt" != "" ]; do
case $opt in
1)
clear
echo -e "${fgred}Update LXC OS${normal}"
msg_info "Updating LXC OS + Grafana"
apk update &>/dev/null
apk upgrade &>/dev/null
msg_ok "Updated ${APP} LXC"
msg_ok "Update Successfull"
break
;;
2)
clear
echo -e "${fgred}Updating Grafana Config with IP: ${LXCIP}${normal}"
msg_info "Stopping Grafana"
service grafana stop &>/dev/null
sed -i -e "s/cfg:server.http_addr=.*/cfg:server.http_addr=0.0.0.0/g" /etc/conf.d/grafana
msg_ok "Restarted Grafana"
service grafana start &>/dev/null
break
;;
3)
clear
echo -e "${fgred}Updating Grafana Config with host IP: ${LXCIP}${normal}"
msg_info "Stopping Grafana"
service grafana stop &>/dev/null
sed -i -e "s/cfg:server.http_addr=.*/cfg:server.http_addr=$LXCIP/g" /etc/conf.d/grafana
msg_ok "Restarted Grafana"
service grafana start &>/dev/null
break
;;
x)
clear
echo -e "⚠ User exited script \n"
exit
;;
\n)
clear
echo -e "⚠ User exited script \n"
exit
;;
*)
clear
echo -e "Please choose an option from the menu"
update_script
;;
esac
done
exit
}
@ -376,6 +437,7 @@ if ! command -v pveversion >/dev/null 2>&1; then
else
update_script
fi
fi
if [ "$VERB" == "yes" ]; then set -x; fi
if [ "$CT_TYPE" == "1" ]; then

View File

@ -27,7 +27,6 @@ var_os="alpine"
var_version="3.17"
NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install"
timezone=$(cat /etc/timezone)
INTEGER='^[0-9]+([.][0-9]+)?$'
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
@ -339,6 +338,7 @@ function install_script() {
ARCH_CHECK
PVE_CHECK
NEXTID=$(pvesh get /cluster/nextid)
timezone=$(cat /etc/timezone)
header_info
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
header_info
@ -352,6 +352,7 @@ header_info
}
function update_script() {
header_info
normal=$(echo "\033[m")
menu=$(echo "\033[36m")
number=$(echo "\033[33m")
@ -410,6 +411,7 @@ if ! command -v pveversion >/dev/null 2>&1; then
else
update_script
fi
fi
if [ "$VERB" == "yes" ]; then set -x; fi
if [ "$CT_TYPE" == "1" ]; then

View File

@ -27,7 +27,6 @@ var_os="alpine"
var_version="3.17"
NSAPP=$(echo ${APP,,} | tr -d ' ')
var_install="${NSAPP}-v5-install"
timezone=$(cat /etc/timezone)
INTEGER='^[0-9]+([.][0-9]+)?$'
YW=$(echo "\033[33m")
BL=$(echo "\033[36m")
@ -339,6 +338,7 @@ function install_script() {
ARCH_CHECK
PVE_CHECK
NEXTID=$(pvesh get /cluster/nextid)
timezone=$(cat /etc/timezone)
header_info
if (whiptail --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
header_info
@ -352,6 +352,7 @@ header_info
}
function update_script() {
header_info
normal=$(echo "\033[m")
menu=$(echo "\033[36m")
number=$(echo "\033[33m")