0a428d8756
update_psa(): if called without -m (without MAINTENANCE): check for ISMAS updates 3 times. If no response by ISMAS, end update process with FAILURE (exit script) if called with -m: check for ISMAS updates 10 times. If no response by ISMAS, end update process with FAILURE (exit script)
master
GerhardHoffmann2023-06-29 13:38:41 +02:00
1ecabe79ca
fetch_customer_updates(): add debug output. check_for_running_apism(): use port 7777 instead of port 7778.
GerhardHoffmann2023-06-29 13:36:56 +02:00
3affefe82a
Remove usage of the following variables: TARIFF_CURRENT TARIFF_SUMMER TARIFF_WINTER TC_PSA_TC_FILE TC_SYS_TC_FILE
GerhardHoffmann2023-06-29 13:34:24 +02:00
a957894d9a
Removed usage of obsolete variable TC_PSA_TC_FILE (=tariff.current) and ATBQT_ATB_SYS_BIN_FILE. For ATBQT_ATB_SYS_BIN_FILE use /opt/app/ATBAPP/ATBQT directly.
GerhardHoffmann2023-06-29 13:30:37 +02:00
0e7f5938c7
1: Wait 5 seconds for ISMAS response. 2: For ISMAS response: check if device_id (=machine_nr) sent from ISMAS is the same as the local machine_nr. If NO, return 1 (fail).
GerhardHoffmann2023-06-29 13:27:01 +02:00
ff2ea6b8f2
Check sanity of WORKING_DIRECTORY variable. cd into $WORKING_DIRECTORY before sourcing other scripts.
GerhardHoffmann2023-06-20 09:14:20 +02:00
ef4d27eb91
Taken over some parts from update_psa: cloning of customer_repository, some sanity checks, check for available updates.
GerhardHoffmann2023-05-26 15:07:40 +02:00
901fa4c319
Replaced CLONE_CUSTOMER_REPOSITORY by INITIAL_CLONE. Added some sanity checks at end of read_config().
GerhardHoffmann2023-05-26 15:05:25 +02:00
bcc96a388f
Restructered clone_customer_repository() and cd_customer_repository(). Fixed cd_home() to return explicitly to the customer repository, not only to -.
GerhardHoffmann2023-05-26 15:01:48 +02:00
2a8be547a8
Added FATAL_FAILURE to log_helpers. Do not send to APIS in case of FATAL_FAILURE.
GerhardHoffmann2023-05-24 16:46:21 +02:00
17521771e3
Use log_info instead of log_debug for some debug messages
GerhardHoffmann2023-05-24 16:45:01 +02:00
515c77bed4
Use GIT_UPDATE_LOG instaed of GIT_PULL_TMP / OPKG_CMDS_TMP.
GerhardHoffmann2023-05-24 13:06:25 +02:00
f2617d8151
Use GIT_UPDATE_LOG. pull_customer_repository(): Check the file GIT_UPDATE_LOG for keywords DOWNLOAD or EXECUTE.
GerhardHoffmann2023-05-24 13:04:39 +02:00
4f9c6155e1
Always log to file. Log to terminal depending on debug level.
GerhardHoffmann2023-05-24 13:02:56 +02:00
95a9307631
check_for_apism, check_default_route and check_for_route_to_repository exit the script if condition is not fulfilled.
GerhardHoffmann2022-06-25 15:19:43 +02:00
fc1c2221b1
Added check_default_route and check_route_for_repository.
GerhardHoffmann2022-06-25 15:11:49 +02:00
9b1549306d
Added checks: check_default_route -> exit if no route set check_route_to_repository -> exit if no such route check_for_apism
GerhardHoffmann2022-06-25 15:08:44 +02:00
7a35039dad
update_psa: when called with an argument, skip test for available updates, executing 'git pull' in any case.
GerhardHoffmann2022-06-16 15:49:34 +02:00
8b5cda7f73
After clone: fetch the reposiry again, follwed by a git reset --hard. The effect is that git crates all diretories and files in /etc and /opt.
GerhardHoffmann2023-03-30 13:59:38 +02:00
52271bef21
do not assert missing files. git will create them in <clone>
GerhardHoffmann2023-03-30 13:40:53 +02:00
3574453066
'git pull' calls the hook post-merge when new data arrive. If this is the case, write a file /tmp/git-pull which contains the names of changed files. Do not search for any special output of git.
GerhardHoffmann2022-06-09 18:41:33 +02:00
27445f354a
call pull_customer_repository without parameters
GerhardHoffmann2022-06-09 18:40:40 +02:00
83aa2dbd5c
clone_customer_repository: re-initailize repository after cloning. Copy .githhoks/post-merge hook into .git/hooks/. post-merge will list the names of changed files and write them to /tmp/git-pull. The existence of /tmp/git-pull shows that there have been received changed files.
GerhardHoffmann2022-06-09 18:34:31 +02:00
8f07fbcf53
moved some code into read_config() to make sure proper initialization
GerhardHoffmann2022-06-06 20:07:47 +02:00
326c6ea001
We use a different work-tree as usual when creatinng the repository. Cloning the rep. does not save this setting. So we have to re-init the rep:
GerhardHoffmann2022-06-06 20:05:05 +02:00