|
|
@ -1229,11 +1229,14 @@ cmdline.spec:odoo:cmd:set-cyclos-url:run() { |
|
|
|
project_name=$(compose:project_name) || exit 1 |
|
|
|
URL=$(compose:get_url "${project_name}" "${cyclos_service}") || exit 1 |
|
|
|
|
|
|
|
Wrap -d "set cyclos url to '$URL'" <<EOF || exit 1 |
|
|
|
echo "UPDATE res_company SET cyclos_server_url = '$URL/api' WHERE id=1;" | |
|
|
|
compose:psql "$project_name" "$dbname" || { |
|
|
|
err "Failed to set cyclos url value in '$dbname' database." |
|
|
|
exit 1 |
|
|
|
} |
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|