diff --git a/17.0/post_upgrade.sh b/17.0/post_upgrade.sh new file mode 100755 index 0000000..aba2fce --- /dev/null +++ b/17.0/post_upgrade.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Post migration to 17.0..." + +#compose --debug run ou17 -u base --stop-after-init --no-http diff --git a/17.0/pre_upgrade.sh b/17.0/pre_upgrade.sh new file mode 100755 index 0000000..618c74f --- /dev/null +++ b/17.0/pre_upgrade.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Prepare migration to 17.0..." + +# Copy database +copy_database ou16 ou17 ou17 || exit 1 + +# Execute SQL pre-migration commands +PRE_MIGRATE_SQL="" +echo "SQL command = $PRE_MIGRATE_SQL" +query_postgres_container "$PRE_MIGRATE_SQL" ou17 || exit 1 + +# Copy filestores +copy_filestore ou16 ou16 ou17 ou17 || exit 1 + +echo "Ready for migration to 17.0!" diff --git a/17.0/upgrade.sh b/17.0/upgrade.sh new file mode 100755 index 0000000..cafb7ae --- /dev/null +++ b/17.0/upgrade.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +compose -f ../compose.yml run -p 8017:8069 ou17 --config=/opt/odoo/auto/odoo.conf --stop-after-init -u all --workers 0 --log-level=warn --max-cron-threads=0 --limit-time-real=10000 --database=ou17 --load=web,openupgrade_framework