11 lines
382 B

  1. # -*- mode: shell-script -*-
  2. get_odoo_uid() {
  3. uid_label="odoo"
  4. odoo_uid=$(cached_cmd_on_base_image "$SERVICE_NAME" "id -u \"$uid_label\"") || {
  5. debug "Failed to query for '$uid_label' uid in ${DARKYELLOW}$SERVICE_NAME${NORMAL} base image."
  6. return 1
  7. }
  8. info "openerp uid from ${DARKYELLOW}$SERVICE_NAME${NORMAL} is '$odoo_uid'"
  9. echo "$odoo_uid"
  10. }