\UbillingUpdateStuff
Ubilling updates deployment routines
Synopsis
class UbillingUpdateStuff
{
- // members
- protected array $billingCfg = ;
- protected string $wgetPath = '/usr/local/bin/wget';
- protected string $tarPath = '/usr/bin/tar';
- protected string $sudoPath = '/usr/local/bin/sudo';
- protected gzip $gzipPath = '/usr/bin/gzip';
- // methods
- public void __construct()
- protected void loadConfig()
- protected void setOptions()
- public void fixAccessRights()
- public void downloadRemoteFile()
- public void extractTgz()
Members
protected
- $billingCfg
—
array
Contains system billing.ini as key=>value - $gzipPath
—
gzip
Gzip archiver path - $sudoPath
—
string
system sudo path - $tarPath
—
string
Tar archiver path - $wgetPath
—
string
Wget path
Methods
protected
- loadConfig() — Loads all required configs
- setOptions() — Sets custom paths to required software
public
- __construct()
- downloadRemoteFile() — Downloads file from remote host
- extractTgz() — Extracts tar.gz archive to some path
- fixAccessRights() — Changes access rights for some directory to be writable