Added apt functions.
This commit is contained in:
parent
0bbd2ce11c
commit
34ae3d2fb0
16
broker.sh
16
broker.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user