Skip to content

Commit 9470997

Browse files
committed
fix #418
1 parent 6c45929 commit 9470997

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
## [2.6.1] - not released
44
### Added
55
### Changed
6+
- More tests before installing prebuilt RTKLib cli tools.
67
### Deprecated
78
### Removed
89
### Fixed
10+
- Build rtklib if previous installed release is not working. #418
911
- Insert new release into settings.conf before restarting services. #411
1012
- Custom web_port setting was not used. #419
1113
- Cellular modem: nmcli connection was not updated after a switch to public ip address.

settings.conf.default

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[general]
44
# Version
5-
version=2.6.0
5+
version=2.6.1
66
# Rtkbase upgrade mandatory "checkpoint"
77
checkpoint_version=2.7.0
88
# User who runs str2str_file service

tools/install.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ install_rtklib() {
167167
#test if computer_model in sbc_array (https://stackoverflow.com/questions/3685970/check-if-a-bash-array-contains-a-value)
168168
if printf '%s\0' "${sbc_array[@]}" | grep -Fxqz -- "${computer_model}" \
169169
&& [[ -f "${rtkbase_path}"'/tools/bin/rtklib_b34j/'"${arch_package}"'/str2str' ]] \
170-
&& lsb_release -c | grep -qE 'buster|bullseye|bookworm'
170+
&& lsb_release -c | grep -qE 'bullseye|bookworm' \
171+
&& "${rtkbase_path}"'/tools/bin/rtklib_b34j/'"${arch_package}"/str2str --version > /dev/null 2>&1
171172
then
172173
echo 'Copying new rtklib binary for ' "${computer_model}" ' - ' "${arch_package}"
173174
cp "${rtkbase_path}"'/tools/bin/rtklib_b34j/'"${arch_package}"/str2str /usr/local/bin/

tools/rtkbase_update.sh

+3
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ upd_2.5.0 () {
200200
}
201201

202202
upd_2.6.0() {
203+
# update modem_check_service file (see https://github.com/Stefal/rtkbase/commit/cfad1981e483d74da04f53b8d7b354661100d610)
203204
"${destination_directory}"/tools/install.sh --user "${standard_user}" --unit-files
205+
# build rtklib if current release doesn't work
206+
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
204207
}
205208

206209
#check if we can apply the update

0 commit comments

Comments
 (0)