Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
1f4ef9a3
Commit
1f4ef9a3
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
do_tests.zsh: fix pg_extensions use, and
allow setting unaccent to install it
parent
de8bb9e7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+6
-1
6 additions, 1 deletion
NEWS.rst
do_tests.zsh
+6
-4
6 additions, 4 deletions
do_tests.zsh
with
12 additions
and
5 deletions
NEWS.rst
+
6
−
1
View file @
1f4ef9a3
...
@@ -2,6 +2,11 @@
...
@@ -2,6 +2,11 @@
History
History
=======
=======
20.12.1
-------
do_tests.zsh: Fix pg_extensions use, and allow setting unaccent to install it.
20.12.0
20.12.0
-------
-------
...
@@ -10,7 +15,7 @@
...
@@ -10,7 +15,7 @@
20.11.0
20.11.0
-------
-------
do_tests.zsh: allow using env var pg_extension to describe extensions to install. Allow compatibility with modules
do_tests.zsh: allow using env var pg_extension
s
to describe extensions to install. Allow compatibility with modules
requiring a specific extension.
requiring a specific extension.
20.10.1
20.10.1
...
...
This diff is collapsed.
Click to expand it.
do_tests.zsh
+
6
−
4
View file @
1f4ef9a3
...
@@ -31,5 +31,4 @@
...
@@ -31,5 +31,4 @@
dbowner
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options db_user
)
dbowner
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options db_user
)
unaccent
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options unaccent False
)
unaccent
=
$(
read_configuration_key
${
project_home
}
/conf/dev/odoo.conf options unaccent False
)
else
else
echo
"
$DEBUG
Use default owner and unaccent"
dbowner
=
odoo
dbowner
=
odoo
...
@@ -35,5 +34,6 @@
...
@@ -35,5 +34,6 @@
dbowner
=
odoo
dbowner
=
odoo
unaccent
=
False
unaccent
=
${
unaccent
-False
}
echo
"
$DEBUG
Use default owner (
$dbowner
) and unaccent (
$unaccent
)"
fi
fi
echo
"
$DEBUG
Looking for modules to install"
echo
"
$DEBUG
Looking for modules to install"
module_list
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list
)
}
module_list
=
${
ODOO_SCRIPTS_MODULE_LIST
-
$(
read_odoo_scripts_expandable_configuration_key module_list
)
}
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
extensions+
=(
$(
read_odoo_scripts_configuration_key pg.extensions
)
)
extensions+
=(
$(
read_odoo_scripts_configuration_key pg.extensions
)
)
# for modules without configuration file, allow environment variable
# for modules without configuration file, allow environment variable
# (expected format is space separated extensions
# (expected format is space separated extensions
if
[[
-
z
"
$pg_extensions
"
]]
;
if
[[
-
n
"
$pg_extensions
"
]]
;
then
then
extensions+
=(
${
(s
:
:
)pg_extensions
}
)
extensions+
=(
${
(s
:
:
)pg_extensions
}
)
fi
fi
...
@@ -126,7 +126,9 @@
...
@@ -126,7 +126,9 @@
then
then
extensions+
=(
${
(s
:
:
)pg_extensions
}
)
extensions+
=(
${
(s
:
:
)pg_extensions
}
)
fi
fi
for
extension
in
$extensions
;
do
echo
"
$DEBUG
postgres extensions
$extensions
"
for
extension
in
$extensions
;
do
echo
"
$INFO
Create extension
$extension
in '
$dbname
'"
echo
"
$INFO
Create extension
$extension
in '
$dbname
'"
psql
$PG_HOST
$PG_USER
$dbname
-c
"CREATE EXTENSION IF NOT EXISTS
$extension
;"
psql
$PG_HOST
$PG_USER
$dbname
-c
"CREATE EXTENSION IF NOT EXISTS
$extension
;"
done
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment