fix: [check_error_odoo_log] adapt to compose status to get correct name
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
ODOO_SERVICE_NAME=$(compose status -c name,charm -r | grep odoo-tecnativa | cut -d" " -f1)
|
||||
service_charm=$(compose status -c name,charm -r | grep odoo-tecnativa)
|
||||
ODOO_SERVICE_NAME=${service_charm%% *}
|
||||
|
||||
# Retirer le préfixe "0:" s'il existe
|
||||
[[ "$ODOO_SERVICE_NAME" == "0:"* ]] && ODOO_SERVICE_NAME=${ODOO_SERVICE_NAME#0:}
|
||||
|
||||
if [ -z "$ODOO_SERVICE_NAME" ]; then
|
||||
echo "Odoo service not found"
|
||||
|
||||
Reference in New Issue
Block a user