Commit 1c02ea34 authored by Joanne Hugé's avatar Joanne Hugé

playbook/bbu: fix configure-sudoers

parent 9325ff43
#!/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
......
8df60f2f0c5c3c5eec736dc6274af83bd056222895d4381abc9a8f3c6a63e367 - 751552b93968a47d6f9f4c637a577fc65be5bfb6755b841c9dd6bdc0b06c8f3e -
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