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": {