Added apt functions.

This commit is contained in:
caes 2020-05-21 09:53:17 -04:00
parent 0bbd2ce11c
commit 34ae3d2fb0
2 changed files with 22 additions and 2 deletions

View File

@ -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

View File

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