Merge pull request #1 from heinemannj/ebusd
Switch ebusd installation from apt to fetch_and_deploy_gh_release
This commit is contained in:
commit
69dc86f5c5
16
ct/ebusd.sh
16
ct/ebusd.sh
@ -23,16 +23,22 @@ function update_script() {
|
|||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -f /etc/apt/sources.list.d/ebusd.sources ]]; then
|
if [[ ! -f /etc/default/ebusd ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
if check_for_gh_release "ebusd" "john30/ebusd"; then
|
||||||
|
msg_info "Stopping Services"
|
||||||
|
systemctl stop ebusd.service
|
||||||
|
msg_ok "Stopped Services"
|
||||||
|
|
||||||
msg_info "Updating ebusd"
|
fetch_and_deploy_gh_release "ebusd" "john30/ebusd" "binary" "latest" "/opt/ebusd" "ebusd-*_amd64-trixie_mqtt1.deb"
|
||||||
$STD apt update
|
|
||||||
$STD apt upgrade -y ebusd
|
msg_info "Starting Services"
|
||||||
msg_ok "Updated ebusd"
|
systemctl start ebusd.service
|
||||||
|
msg_ok "Started Services"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,16 +13,9 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
setup_deb822_repo \
|
|
||||||
"ebusd" \
|
|
||||||
"https://raw.githubusercontent.com/john30/ebusd-debian/master/ebusd.gpg" \
|
|
||||||
"https://repo.ebusd.eu/apt/default/bookworm/" \
|
|
||||||
"bookworm" \
|
|
||||||
"main"
|
|
||||||
|
|
||||||
msg_info "Installing ebusd"
|
msg_info "Installing ebusd"
|
||||||
$STD apt install -y ebusd
|
fetch_and_deploy_gh_release "ebusd" "john30/ebusd" "binary" "latest" "" "ebusd-*_amd64-trixie_mqtt1.deb"
|
||||||
systemctl enable -q ebusd
|
systemctl enable -q ebusd.service
|
||||||
msg_ok "Installed ebusd"
|
msg_ok "Installed ebusd"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user