Package DE_EPAGES::Installer::API::EpagesJ
Functions for handling epagesj
@EXPORT_OK |
Functions
- AddEpagesJService
- AddMongoDBService
- GetEpagesJBuild
- GetEpagesJEtcUrl
- GetEpagesJVersion
- GetEpagesJZipUrl
- UnpackEpagesJ
- UpdateEpagesJ
- UpdateEpagesJEtc
AddEpagesJService
Adds windows epagesj services (does nothing under Linux)
Syntax |
AddEpagesJService(); |
AddMongoDBService
Adds windows mongodb service (does nothing under Linux)
Syntax |
AddMongoDBService($MongoBinDir, $MongoDataDir, $hFlags); |
Input |
|
GetEpagesJBuild
Get build nubmer as defd. in $JDir/webapps/epagesj.version Returns 0 unless exists.
Syntax |
$Build = GetEpagesJBuild($JDir); |
Input |
|
Return |
|
GetEpagesJEtcUrl
Returns URL for epagesj start/stop scripts (Linux) on the download site.
Syntax |
$DownloadUrl = GetEpagesJEtcUrl($Version); |
Input |
|
Return |
|
GetEpagesJVersion
Get version as defd. in $JDir/webapps/epagesj.version Returns 0 unless exists.
Syntax |
$Version = GetEpagesJVersion($JDir); |
Input |
|
Return |
|
GetEpagesJZipUrl
Returns URL for epagesj.zip on the download site.
Syntax |
$DownloadUrl = GetEpagesJZipUrl($Version); |
Input |
|
Return |
|
UnpackEpagesJ
Updates $ENV{EPAGESJ} with package $Package.
Syntax |
UnpackEpagesJ($Package, $OldVersion, $NewVersion, $hFlags); |
Input |
|
UpdateEpagesJ
If $Version is set, upgrades/downgrades/installs epagesj. If $Version is unset, installs epagesj unless installed. Does nothing if installed and new version are same. Returns error if upgrade/downgrade/install fails.
Syntax |
$Update = UpdateEpagesJ($Version, $Source, $hFlags); |
Example |
UpdateEpagesJ('6.14.6', 'Data/j', { start => 1 }); UpdateEpagesJ('6.14.6', 'Data/epagesj.zip'); UpdateEpagesJ('6.14.6'); UpdateEpagesJ(); |
Input |
|
Return |
|
UpdateEpagesJEtc
Updates epagesj start/stop scripts (Linux).
Syntax |
UpdateEpagesJEtc($OldVersion, $NewVersion, $Source); |
Example |
UpdateEpagesJEtc('6.14.4', '6.14.6', 'Data/j/etc'); UpdateEpagesJEtc(undef, '6.14.6'); UpdateEpagesJEtc() |
Input |
|