Hello, I lost my changed port settings in /etc/default/openhab…
Was easy to reconfigure it but maybe in the next update it could be improved?
Otherwise nice work keep on going
Hello, I lost my changed port settings in /etc/default/openhab…
Was easy to reconfigure it but maybe in the next update it could be improved?
Otherwise nice work keep on going
AFAIK that’s a system file so you should not change it (or at least not expect it to remain untouched).
Open a feature request with openhab-linuxpkg
.
No, this is a configuration file and /etc/default/openhab
would be the right place to change the port.
If apt was used, then it should have asked the user if the file can be changed. But I don’t see what would have triggered this, the file hasn’t changed.
milo:Hello, I lost my changed port settings in /etc/default/openhab…
[/quote]AFAIK that’s a system file so you should not change it (or at least not expect it to remain untouched).
Open a feature request withopenhab-linuxpkg
.No, this is a configuration file and
/etc/default/openhab
would be the right place to change the port.If apt was used, then it should have asked the user if the file can be changed. But I don’t see what would have triggered this, the file hasn’t changed.
I am on openhabian and updated via openabian-config. There was no question asked
But I don’t see what would have triggered this, the file hasn’t changed.
Possibly this ?
-
- if running_in_docker || [[ -z $OFFLINE ]]; then
- if ! add_keys https://openhab.jfrog.io/artifactory/api/gpg/key/public; then return 1; fi
-
- rm -f /etc/apt/sources.list.d/${ohPkgName}*.list
- echo "$repo" > /etc/apt/sources.list.d/${ohPkgName}.list
-
- echo -n "$(timestamp) [openHABian] Installing selected $1 version... "
- if ! cond_redirect apt-get update; then echo "FAILED (update apt lists)"; return 1; fi
- openhabVersion="$(apt-cache madison ${ohPkgName} | head -n 1 | cut -d'|' -f2 | xargs)"
- if cond_redirect apt-get install --allow-downgrades --yes --option Dpkg::Options::="--force-confnew" "${ohPkgName}=${openhabVersion}" "${ohPkgName}-addons=${openhabVersion}"; then echo "OK"; else echo "FAILED"; return 1; fi
- else
- echo -n "$(timestamp) [openHABian] Installing cached openHAB version... "
- if cond_redirect apt-get install --yes --option Dpkg::Options::="--force-confnew" ${ohPkgName} ${ohPkgName}-addons; then echo "OK"; else echo "FAILED"; return 1; fi
- fi
-
- # shellcheck disable=SC2154
- gid="$(id -g "$username")"
- cond_redirect usermod -g "openhab" "$username" &> /dev/null
- cond_redirect usermod -aG "$gid" "$username" &> /dev/null
-
I don’t fully recall why we ended up using --force-confnew
but I remember it was important to ensure upgrades work in a number of situations so I won’t want to remove that