diff --git a/upgradeDolibarr.sh b/upgradeDolibarr.sh index e91589226bbacc44d8f7430c7999f306ab14ea5d..4d34c93b2e6b539c11f0eb8ef7f4865d378edf83 100644 --- a/upgradeDolibarr.sh +++ b/upgradeDolibarr.sh @@ -30,6 +30,16 @@ current_version=`apt-cache policy dolibarr | grep Installed \ echo "Current version of Dolibarr: $current_version" echo "Retrieving list of Dolibarr versions" +if [ "$1" == "force" ] +then + update_type="major" + num='' +else + update_type="minor" + num=$current_major +fi + + url=`$DIR/getLastDolibarrDeb.sh $num` last_ver=`echo $url | cut -d ' ' -f 2`