@@ -199,7 +199,6 @@ upd_2.5.0 () {
199199
200200}
201201
202- # this update function is here only for testing update, but could be useful in case of a failed 2.5 to 2.6 update.
203202upd_2.6.0 () {
204203 " ${destination_directory} " /tools/install.sh --user " ${standard_user} " --unit-files
205204}
@@ -219,9 +218,10 @@ upd_"${old_version/b*/b}" "$@" || { echo 'Update failed (upd_release_number)' ;
219218# When dealing with beta version, "${oldversion/b*/b}" will call function 2.4b when we use a release 2.4b1 or 2.4b2 or 2.4beta99
220219
221220# The new version numbers will be imported from settings.conf.default during the web server startup.
222- echo " Delete the line version= and checkpoint_version= in settings.conf"
221+ echo " update the line version= and delete checkpoint_version= in settings.conf"
223222sed -i ' /^checkpoint_version=/d' ${destination_directory} /settings.conf
224- sed -i ' /^version=/d' ${destination_directory} /settings.conf
223+ new_version=$( grep ' ^version' ${destination_directory} /settings.conf.default | awk -F ' =' ' { print $2 }' )
224+ sed -i ' s/^version=.*/version=' $new_version ' /' ${destination_directory} /settings.conf
225225echo ' Insert updated status in settings.conf'
226226sed -i ' /^\[general\]/a updated=true' ${destination_directory} /settings.conf
227227
@@ -230,9 +230,10 @@ chown -R ${standard_user}:${standard_user} ${destination_directory}
230230
231231 # restart str2str if it was active before upgrading rtklib
232232 # restart not nedeed if RTKlib was not upgraded
233- [ $str2str_active = ' active' ] && systemctl restart str2str_tcp
234- [ $str2str_file = ' active' ] && systemctl restart str2str_file
235- [ $rtkrcv_raw2nmea = ' active' ] && systemctl restart rtkbase_raw2nmea
233+ # [ $str2str_active = 'active' ] && systemctl restart str2str_tcp
234+ # [ $str2str_file = 'active' ] && systemctl restart str2str_file
235+ # [ $rtkrcv_raw2nmea = 'active' ] && systemctl restart rtkbase_raw2nmea
236+
236237 # restart previously running services
237238 # restart needed with all update to propagate the release number in the rtcm stream
238239 [ $str2str_ntrip_A_active = ' active' ] && systemctl restart str2str_ntrip_A
@@ -241,7 +242,6 @@ chown -R ${standard_user}:${standard_user} ${destination_directory}
241242 [ $str2str_rtcm = ' active' ] && systemctl restart str2str_rtcm_svr
242243 [ $str2str_serial = ' active' ] && systemctl restart str2str_rtcm_serial
243244
244-
245245# if a reboot is needed
246246# systemctl reboot
247247echo ' RTKBase update ending...'
0 commit comments