Initialize pg_trgm as root.

This commit is contained in:
Mateusz 2023-11-23 23:13:43 +01:00 committed by GitHub
parent 1619e13c9a
commit 09c80b4c6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,8 @@ $install_dir/venv/bin/pip3 install -r "$install_dir/requirements.txt"
#=================================================
ynh_script_progression --message="Initializing database..." --weight=1
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT Exists pg_trgm;" --database="$db_name"
$install_dir/venv/bin/python3 "$install_dir/manage.py" migrate
$install_dir/venv/bin/python3 "$install_dir/manage.py" initdb
$install_dir/venv/bin/python3 "$install_dir/manage.py" compile_themes