This does a full update of an existing secret to keep the name the same for a stack update
Docker secret does not have an update command (by design). This is great for rollbacks to keep a history of secrets - but this will not allow a docker stack
command to update a service without changing the secret name.
This script does a full update and change of the docker secret
$ STACK=myapp ./update.sh
MIT