Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
fa4847f3
Commit
fa4847f3
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: update virtualmin with 3.1.0
parent
90b7cd1a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/perl/virtualmin/dolibarr.pl
+10
-5
10 additions, 5 deletions
build/perl/virtualmin/dolibarr.pl
with
10 additions
and
5 deletions
build/perl/virtualmin/dolibarr.pl
+
10
−
5
View file @
fa4847f3
#----------------------------------------------------------------------------
# \file dolibarr.pl
# \brief Dolibarr script install for Virtualmin Pro
# \author (c)2009-201
1
Regis Houssin <regis@dolibarr.fr>
# \author (c)2009-201
2
Regis Houssin <regis@dolibarr.fr>
#----------------------------------------------------------------------------
...
...
@@ -30,7 +30,7 @@ return "Regis Houssin";
# script_dolibarr_versions()
sub
script_dolibarr_versions
{
return
(
"
3.1.0
"
);
return
(
"
3.1.0
"
,
"
3.0.1
",
"
2.9.0
"
);
}
sub
script_dolibarr_category
...
...
@@ -141,7 +141,7 @@ sub script_dolibarr_files
local
(
$d
,
$ver
,
$opts
,
$upgrade
)
=
@_
;
local
@files
=
(
{
'
name
'
=>
"
source
",
'
file
'
=>
"
Dolibarr_
$ver
.tar.gz
",
'
url
'
=>
"
http://
www.dolibarr.fr/files/stable
/dolibarr-
$ver
.t
ar.
gz
"
}
);
'
url
'
=>
"
http://
prdownloads.sourceforge.net/dolibarr
/dolibarr-
$ver
.tgz
"
}
);
return
@files
;
}
...
...
@@ -173,7 +173,7 @@ return (0, "Database connection failed : $dberr") if ($dberr);
# Extract tar file to temp dir and copy to target
local
$temp
=
&transname
();
local
$err
=
&extract_script_archive
(
$files
->
{'
source
'},
$temp
,
$d
,
$opts
->
{'
dir
'},
undef
);
$opts
->
{'
dir
'},
"
dolibarr-
$ver
/htdocs
"
);
$err
&&
return
(
0
,
"
Failed to extract source :
$err
");
# Add config file
...
...
@@ -354,8 +354,13 @@ sub script_dolibarr_latest
{
local
(
$ver
)
=
@_
;
if
(
$ver
>=
3.0
)
{
return
(
"
http://sourceforge.net/projects/dolibarr/files/
"
.
"
Dolibarr%20ERP-CRM
",
"
(3
\\
.[0-9
\\
.]+)
"
);
}
elsif
(
$ver
>=
2.9
)
{
return
(
"
http://www.dolibarr.fr/files/stable/
",
"
dolibarr
\\
-(
3
\\
.[0-9
\\
.]+)
"
);
"
dolibarr
\\
-(
2
\\
.[0-9
\\
.]+)
"
);
}
return
(
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment