imp: factorize filestore copy process
This commit is contained in:
@@ -23,9 +23,7 @@ EOF
|
||||
echo "SQL command = $PRE_MIGRATE_SQL"
|
||||
query_postgres_container "$PRE_MIGRATE_SQL" ou16 || exit 1
|
||||
|
||||
|
||||
# Copy filestores
|
||||
rm -rf /srv/datastore/data/ou16/var/lib/odoo/filestore/ou16 || exit 1
|
||||
cp -a /srv/datastore/data/ou15/var/lib/odoo/filestore/ou15 /srv/datastore/data/ou16/var/lib/odoo/filestore/ou16 || exit 1
|
||||
copy_filestore ou15 ou15 ou16 ou16 || exit 1
|
||||
|
||||
echo "Ready for migration to 16.0!"
|
||||
|
Reference in New Issue
Block a user