From 34ae3d2fb00b0b0b6e1a8c3a312241143f094cdf Mon Sep 17 00:00:00 2001 From: caes Date: Thu, 21 May 2020 09:53:17 -0400 Subject: [PATCH] Added apt functions. --- broker.sh | 18 ++++++++++++++++-- data.json | 6 ++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/broker.sh b/broker.sh index 8de053f..308f1da 100755 --- a/broker.sh +++ b/broker.sh @@ -312,7 +312,7 @@ export_env () { if [[ $TESTING_MODE == "TRUE" ]]; then echo export $line fi - export $line + export $line done } @@ -527,7 +527,7 @@ construst_cluster_info () { } ###################################################################### -# Informations +# Informatics info () { construct_deal_info $* @@ -777,6 +777,20 @@ restart_all_containers () { ###################################################################### # Local dealing +run_apt () { + if construct_deal_info $*; then + local lines=() + readarray -t lines < <(get_data_array $* apt) + for line in "${lines[@]}"; do + if [[ $TESTING_MODE == "TRUE" ]]; then + echo sudo apt $line + else + sudo apt $line + fi + done + fi +} + docker_run_from_data () { dealkeypath="$*" # env exported here since this is for bootstrapping diff --git a/data.json b/data.json index c5c281d..cf91466 100644 --- a/data.json +++ b/data.json @@ -21,6 +21,12 @@ "issue_path": "$ADAMOCOMP_HOME/bash-logger", "run": "syslog.sh" }, + "tex-live": { + "repo": "support/tex-live.git", + "apt": [ + "install -y texlive-latex-extra texlive-xetex" + ] + }, "gitlab": { "repo": "sys/adamocomp.git", "docker": {