Fix script order execution for scripts with >4 digits

So we had the 9999->10000 switch in our svn now.
Scripts >=10000 need to be executed after <=9999.

This code has never happend. Nothing to see here, move along… ٩(͡๏̯͡๏)۶

From: Michael Prokop <mprokop@sipwise.com>
2.6
Michael Prokop 13 years ago
parent d1dfd749ae
commit 05265224f3

@ -169,7 +169,14 @@ revision_wrapper() {
done
}
revision_wrapper /usr/share/ngcp-db-schema/db_scripts/base/*.up
revision_wrapper /usr/share/ngcp-db-schema/db_scripts/diff/*.up
# make sure we get sorted 10XXX after 9XXX
cd /usr/share/ngcp-db-schema/db_scripts/base/
revision_wrapper $(printf '%s\0' *.up | sort -z -n | while IFS= read -r -d "" file; do \
echo /usr/share/ngcp-db-schema/db_scripts/base/$file; done)
cd /usr/share/ngcp-db-schema/db_scripts/diff/
revision_wrapper $(printf '%s\0' *.up | sort -z -n | while IFS= read -r -d "" file; do \
echo /usr/share/ngcp-db-schema/db_scripts/diff/$file; done)
## END OF FILE #################################################################

Loading…
Cancel
Save