Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Basyuk
Contributor

Configuration script via SmartProvisioning

Hello!

How can I write Configuration Script via SmartProvisioning for 'add' command?

For example, if I want to add administrator, but he is already exist, then Provisioning State will show me an error and following commands will not be executed.

 

0 Kudos
5 Replies
PhoneBoy
Admin
Admin

The scripting language for SmartProvisioning is the expert shell (bash).
You may want to check for the presence of the admin prior to adding them to ensure the script doesn't fail or do some other error catching in your script.

0 Kudos
Basyuk
Contributor

The configuration script in the provisioning profile settings works only in clish. Am I wrong?

0 Kudos
PhoneBoy
Admin
Admin

0 Kudos
Basyuk
Contributor

You write about the run script function, and I write about the configuration script function in the provisioning profile settings.

Screenshot in attachment.

0 Kudos
PhoneBoy
Admin
Admin

Yeah, it would make sense that was based on clish.
Maybe add set clienv on-failure continue to the script.
This should allow the script to continue if one of the commands fails.
Not sure if this is in Embedded Gaia, but it works in regular Gaia.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events