Skip to content

Commit

Permalink
Sort by version
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse authored and julsemaan committed Apr 16, 2020
1 parent 38f1f25 commit 89a9cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/packetfence.spec
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ curdir=`pwd`
#pf-schema.sql symlinks to current schema
if [ ! -h "%{buildroot}/usr/local/pf/db/pf-schema.sql" ]; then
cd %{buildroot}/usr/local/pf/db
VERSIONSQL=$(ls pf-schema-* |sort -r | head -1)
VERSIONSQL=$(ls pf-schema-* |sort --version-sort -r | head -1)
ln -f -s $VERSIONSQL ./pf-schema.sql
fi

Expand Down

0 comments on commit 89a9cad

Please sign in to comment.