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