File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed
Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,22 @@ function update_script() {
2323 header_info
2424 check_container_storage
2525 check_container_resources
26- if [[ ! -f /etc/apt/sources.list.d/ ebusd.sources ]]; then
26+ if [[ ! -f /etc/default/ ebusd ]]; then
2727 msg_error " No ${APP} Installation Found!"
2828 exit
2929 fi
30-
31- msg_info " Updating ebusd"
32- $STD apt update
33- $STD apt upgrade -y ebusd
34- msg_ok " Updated ebusd"
35- msg_ok " Updated successfully!"
30+ if check_for_gh_release " ebusd" " john30/ebusd" ; then
31+ msg_info " Stopping Services"
32+ systemctl stop ebusd.service
33+ msg_ok " Stopped Services"
34+
35+ fetch_and_deploy_gh_release " ebusd" " john30/ebusd" " binary" " latest" " /opt/ebusd" " ebusd-*_amd64-trixie_mqtt1.deb"
36+
37+ msg_info " Starting Services"
38+ systemctl start ebusd.service
39+ msg_ok " Started Services"
40+ msg_ok " Updated successfully!"
41+ fi
3642 exit
3743}
3844
Original file line number Diff line number Diff line change @@ -13,16 +13,9 @@ setting_up_container
1313network_check
1414update_os
1515
16- setup_deb822_repo \
17- " ebusd" \
18- " https://raw.githubusercontent.com/john30/ebusd-debian/master/ebusd.gpg" \
19- " https://repo.ebusd.eu/apt/default/bookworm/" \
20- " bookworm" \
21- " main"
22-
2316msg_info " Installing ebusd"
24- $STD apt install -y ebusd
25- systemctl enable -q ebusd
17+ fetch_and_deploy_gh_release " ebusd " " john30/ebusd " " binary " " latest " " " " ebusd-*_amd64-trixie_mqtt1.deb "
18+ systemctl enable -q ebusd.service
2619msg_ok " Installed ebusd"
2720
2821motd_ssh
You can’t perform that action at this time.
0 commit comments