I am trying to upload a custom commissioning script, and yes it starts with a shebang (#!/bin/bash) but the CLI is telling me it doesn’t. I even tried with an example from the docs, and same result. Can anyone assist? I am using MAAS v3.2.6
user@machine:~$ cat test.sh
#!/bin/bash
# --- Start MAAS 1.0 script metadata ---
# name: example
# parallel: instance
# parameters:
# storage:
# type: storage
# argument-format: '{model}' '{serial}'
# --- End MAAS 1.0 script metadata ---
echo "Model: $1"
echo "Serial: $2"
user@machine:~$ sudo maas wr node-scripts create name=test script=test.sh type=commissioning
{"script": ["Must start with shebang."]}