traefik update-script
This commit is contained in:
parent
3387d098c7
commit
22986ec953
@ -21,17 +21,18 @@ catch_errors
|
|||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
msg_info "Enabling edge repository"
|
||||||
check_container_resources
|
echo "@edge https://dl-cdn.alpinelinux.org/alpine/edge/community" >>/etc/apk/repositories
|
||||||
UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \
|
$STD apk update
|
||||||
"1" "Check for Alpine Updates" ON \
|
|
||||||
3>&1 1>&2 2>&3)
|
|
||||||
|
|
||||||
header_info
|
msg_info "Running full system upgrade"
|
||||||
if [ "$UPD" == "1" ]; then
|
$STD apk upgrade
|
||||||
apk update && apk upgrade
|
msg_ok "System upgraded"
|
||||||
exit
|
|
||||||
fi
|
msg_info "Disabling edge repository"
|
||||||
|
sed -i '/@edge/d' /etc/apk/repositories
|
||||||
|
$STD apk update
|
||||||
|
msg_ok "Disabled edge repository"
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user