wotking
This commit is contained in:
@@ -11,7 +11,7 @@ exec > /4server/data/log/importDb.log 2>&1
|
||||
echo "$(date '+%Y-%m-%d %H:%M') Import file $1"
|
||||
|
||||
# Generate random 8-digit filename
|
||||
RANDOM_FILE="/4server/tmp/$(printf "%08d" $((RANDOM % 100000000))).zip"
|
||||
RANDOM_FILE="/4server/tmp/import_$(date '+%Y%m%d_%H%M').zip"
|
||||
|
||||
# Download file from Google Drive using gdown
|
||||
gdown "$1" -O "$RANDOM_FILE"
|
||||
|
||||
30
app/sbin/ODOO_19/listModules
Executable file
30
app/sbin/ODOO_19/listModules
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
export PATH=/4PROJECTS/bin:$PATH
|
||||
if [ ! -n "$1" ]; then
|
||||
echo "Missing Parameters <UUID>"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
UUID=$1
|
||||
|
||||
source /4server/sbin/helpers
|
||||
|
||||
get_contract_info
|
||||
|
||||
# Query installed Odoo modules and output as CSV (disable pager for non-interactive use)
|
||||
PGPASSWORD="$POSTGRES_ADMIN_PASSWORD" PAGER= psql \
|
||||
-h "$POSTGRES_HOST" \
|
||||
-U "$POSTGRES_ADMIN_USER" \
|
||||
-p "$POSTGRES_PORT" \
|
||||
-d "$UUID" \
|
||||
--csv \
|
||||
-c "
|
||||
SELECT
|
||||
name,
|
||||
latest_version,
|
||||
author,
|
||||
summary
|
||||
FROM ir_module_module
|
||||
WHERE state = 'installed'
|
||||
ORDER BY name;
|
||||
"
|
||||
Reference in New Issue
Block a user