Skip to content

Commit

Permalink
fix iobroker upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
BassT23 committed Dec 14, 2024
1 parent 783bbe7 commit a9102ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions update-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
# Update-Extras #
#################

# shellcheck disable=SC1017
# shellcheck disable=SC2034
VERSION="1.9"

VERSION="1.9.1"

# Variables
CONFIG_FILE="/etc/ultimate-updater/update.conf"
Expand All @@ -25,9 +27,9 @@ fi
# ioBroker
if [[ -d "/opt/iobroker" && $IOBROKER == true ]]; then
echo -e "\n*** Updating ioBroker ***\n"
echo "*** Stop ioBroker ***" && iob stop && echo
echo "*** Update/Upgrade ioBroker ***" && iob update && iob upgrade -y && iob upgrade self -y && echo
echo "*** Start ioBroker ***" && iob start && echo
echo "*** Stop ioBroker ***" && sudo -u iobroker bash -c "iob stop" && echo
echo "*** Update/Upgrade ioBroker ***" && sudo -u iobroker bash -c "iob update" && sudo -u iobroker bash -c "iob upgrade -y" && sudo -u iobroker bash -c "iob upgrade self -y" && echo
echo "*** Start ioBroker ***" && sudo -u iobroker bash -c "iob start" && echo
if [[ -d "/opt/iobroker/iobroker-data/radar2.admin" ]]; then
setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip "$(eval readlink -f '$(which arp-scan)')"
setcap cap_net_admin,cap_net_raw,cap_net_bind_service=+eip "$(eval readlink -f '$(which node)')"
Expand Down
6 changes: 3 additions & 3 deletions update.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ RUNNING_VM="true"

INCLUDE_KERNEL="true"
INCLUDE_PHASED_UPDATES="false"
INCLUDE_LXC_CLEAN="false"
INCLUDE_FSTRIM="false"
INCLUDE_KERNEL_CLEAN="false"
INCLUDE_LXC_CLEAN="true" # true only in develop
INCLUDE_FSTRIM="true" # true only in develop
INCLUDE_KERNEL_CLEAN="true" # true only in develop

VM_START_DELAY="45" # in secounds

Expand Down

0 comments on commit a9102ec

Please sign in to comment.