1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

[fix] Testing dpkg --correct-versions

This commit is contained in:
tituspijean 2018-09-03 20:52:48 +02:00
parent 728377daee
commit 87a8db86e4

View file

@ -113,7 +113,7 @@ fi
# Downward compatibility: remove the v before version number
if [[ $old_flarum_version == "v*" ]]; then $old_flarum_version = ${old_flarum_version:1}; fi
# Check if upgrade of Flarum core is needed
if [[ dpkg --compare-version $old_flarum_version lt $flarum_version ]]; then
if [[ $(dpkg --compare-versions $old_flarum_version lt $flarum_version) ]]; then
# Upgrade Flarum
exec_composer $app $final_path "require -n flarum/core:'$flarum_version'"
pushd $final_path