Commit d9962c39 authored by Joanne Hugé's avatar Joanne Hugé

playbook/bbu: fix configure-sudoers

parent 107106a0
#!/bin/bash #!/bin/bash
mkdir -p /etc/sudoers.d
COMMAND_LIST=("rm-tmp-lte" "init-enb" "init-sdr" "get-sdr-info") COMMAND_LIST=("rm-tmp-lte" "init-enb" "init-sdr" "get-sdr-info")
PARTITION_AMOUNT="$(sed -n 's/partition_amount = \(.*\)/\1/gp' /etc/opt/slapos/slapos.cfg)" PARTITION_AMOUNT="$(sed -n 's/partition_amount = \(.*\)/\1/gp' /etc/opt/slapos/slapos.cfg)"
for c in "${COMMAND_LIST[@]}"; do for c in "${COMMAND_LIST[@]}"; do
......
30ce2169ae3dc5e2c28dc5ac409f53caa62144f209458aa2508339188d7f3510 - 1ab36b5c8eec3c6359d08737854fb0df1ab3d5af13fdf64fe8df7503ea0b7f24 -
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment