Added apt functions.
This commit is contained in:
parent
0bbd2ce11c
commit
34ae3d2fb0
18
broker.sh
18
broker.sh
@ -312,7 +312,7 @@ export_env () {
|
|||||||
if [[ $TESTING_MODE == "TRUE" ]]; then
|
if [[ $TESTING_MODE == "TRUE" ]]; then
|
||||||
echo export $line
|
echo export $line
|
||||||
fi
|
fi
|
||||||
export $line
|
export $line
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -527,7 +527,7 @@ construst_cluster_info () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Informations
|
# Informatics
|
||||||
|
|
||||||
info () {
|
info () {
|
||||||
construct_deal_info $*
|
construct_deal_info $*
|
||||||
@ -777,6 +777,20 @@ restart_all_containers () {
|
|||||||
######################################################################
|
######################################################################
|
||||||
# Local dealing
|
# 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 () {
|
docker_run_from_data () {
|
||||||
dealkeypath="$*"
|
dealkeypath="$*"
|
||||||
# env exported here since this is for bootstrapping
|
# env exported here since this is for bootstrapping
|
||||||
|
@ -21,6 +21,12 @@
|
|||||||
"issue_path": "$ADAMOCOMP_HOME/bash-logger",
|
"issue_path": "$ADAMOCOMP_HOME/bash-logger",
|
||||||
"run": "syslog.sh"
|
"run": "syslog.sh"
|
||||||
},
|
},
|
||||||
|
"tex-live": {
|
||||||
|
"repo": "support/tex-live.git",
|
||||||
|
"apt": [
|
||||||
|
"install -y texlive-latex-extra texlive-xetex"
|
||||||
|
]
|
||||||
|
},
|
||||||
"gitlab": {
|
"gitlab": {
|
||||||
"repo": "sys/adamocomp.git",
|
"repo": "sys/adamocomp.git",
|
||||||
"docker": {
|
"docker": {
|
||||||
|
Loading…
Reference in New Issue
Block a user