Commit Graph

248 Commits

Author SHA1 Message Date
3affefe82a Remove usage of the following variables:
TARIFF_CURRENT
TARIFF_SUMMER
TARIFF_WINTER
TC_PSA_TC_FILE
TC_SYS_TC_FILE
2023-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.
2023-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).
2023-06-29 13:27:01 +02:00
fcf179bee1 clone_customer_repository(): add additional debug-output. 2023-06-29 13:23:51 +02:00
f7badfea2e Add empty_file()-helper. To be used later. 2023-06-29 13:22:19 +02:00
4921cb9f06 Merge branch 'master' of https://git.mimbach49.de/GerhardHoffmann/UpdateController 2023-06-20 09:15:14 +02:00
ff2ea6b8f2 Check sanity of WORKING_DIRECTORY variable. cd into $WORKING_DIRECTORY before sourcing other scripts. 2023-06-20 09:14:20 +02:00
0cbd5f523f „update_psa.conf“ ändern
Fix: path to machine_nr in config file
2023-06-09 17:24:51 +02:00
5bca1f498b set WORKING_DIRECTORY explicitly to PWD if . is passed 2023-06-05 15:34:46 +02:00
2d1f11fd74 replaced dc2c.hex with dc2c.bin 2023-06-05 15:07:05 +02:00
2d76b37e5d removed if-GIT_CLONE_EXECUTED branch 2023-05-30 16:42:03 +02:00
b5b3aa7e34 fixed wong shift of arguments for maintenance flag 2023-05-30 16:41:08 +02:00
e3403b2ddd removed typo and initialized variable 2023-05-30 16:40:25 +02:00
82d6dc643a Extended debug output 2023-05-30 16:39:42 +02:00
ef4d27eb91 Taken over some parts from update_psa:
cloning of customer_repository, some sanity checks, check for available
updates.
2023-05-26 15:07:40 +02:00
215b155f2d Moved main parts to update_psa_impl. 2023-05-26 15:07:13 +02:00
901fa4c319 Replaced CLONE_CUSTOMER_REPOSITORY by INITIAL_CLONE.
Added some sanity checks at end of read_config().
2023-05-26 15:05:25 +02:00
e356456fb5 added update_psa_clone_customer_repository().w 2023-05-26 15:04:52 +02:00
bcc96a388f Restructered clone_customer_repository() and cd_customer_repository().
Fixed cd_home() to return explicitly to the customer repository, not
only to -.
2023-05-26 15:01:48 +02:00
8f50f62a52 Moved changing to WORKING_DIRECTORY here 2023-05-24 17:29:15 +02:00
847c58afc8 Moved changing to WORKING_DIRECTORY into update_psa 2023-05-24 17:28:28 +02:00
2abdf963ac Added zone4 for szeged 2023-05-24 17:27:36 +02:00
96d76b856a Added MAINTENANCE flag (-m). If set, simulate WAIT-button in ISMAS 2023-05-24 16:47:54 +02:00
9eff70b780 fixed typo 2023-05-24 16:46:52 +02:00
2a8be547a8 Added FATAL_FAILURE to log_helpers. Do not send to APIS in case of FATAL_FAILURE. 2023-05-24 16:46:21 +02:00
17521771e3 Use log_info instead of log_debug for some debug messages 2023-05-24 16:45:01 +02:00
515c77bed4 Use GIT_UPDATE_LOG instaed of GIT_PULL_TMP / OPKG_CMDS_TMP. 2023-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.
2023-05-24 13:04:39 +02:00
4f9c6155e1 Always log to file. Log to terminal depending on debug level. 2023-05-24 13:02:56 +02:00
33511a5bcb simulate WAIT-button 2023-04-25 14:26:36 +02:00
bd0d07f56f Added git_branch() and git_customer_branch() 2022-07-08 17:23:03 +02:00
b8bc61daea Set log_level to INFO 2022-07-08 13:50:16 +02:00
27cd99f96a Add update_psa with parameter to skip WAIT-test 2022-07-08 13:21:47 +02:00
729778043a Removed syntactic errors. 2022-06-25 21:27:14 +02:00
31e1aad762 Removed the copy operation for the githooks aunder .githooks. 2022-06-25 21:26:20 +02:00
f8c091ad0c Add get_blob and get_commit_for_blob 2022-06-25 17:18:13 +02:00
e5e6c4c1cd Minor change: check_for_running_apism 2022-06-25 15:22:34 +02:00
95a9307631 check_for_apism, check_default_route and check_for_route_to_repository
exit the script if condition is not fulfilled.
2022-06-25 15:19:43 +02:00
fc1c2221b1 Added check_default_route and check_route_for_repository. 2022-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
2022-06-25 15:08:44 +02:00
a8f691741b Added APISM running 2022-06-25 15:07:23 +02:00
c229f7072c added (commented) line for 'update_psa testing' 2022-06-16 15:52:44 +02:00
7a35039dad update_psa: when called with an argument, skip test for available
updates, executing 'git pull' in any case.
2022-06-16 15:49:34 +02:00
42fb74a041 deactivate some debug output 2022-06-16 15:49:00 +02:00
d69f767002 deactivate output 2022-06-16 15:48:11 +02:00
7c2d78e6db return 0 as exit code 2023-03-31 12:17:08 +02:00
9dd7eb7a3c Activate colored output 2023-03-31 09:45:57 +02:00
87be571e43 Remove GIT_PULL_TMP and OPKG_CMDS_TMP when cloning 2023-03-31 09:05:21 +02:00
2045dcedf5 Change to passed working directory 2023-03-30 14:56:49 +02:00
9d6bb99963 Set working directory to PWD 2023-03-30 14:55:13 +02:00