Members
Methods
# checkAndInstallCertbot() → {Promise.<boolean>}
Check if Certbot and Certbot NGINX plugin are installed, and install them if necessary.
Promise resolving to true if Certbot and its NGINX plugin are installed, false otherwise.
Promise.<boolean>
# checkPermissions(dirPath, desiredMode)
Checks and corrects permissions of a directory.
Parameters:
Name | Type | Description |
---|---|---|
dirPath |
string
|
Path of the directory to check. |
desiredMode |
number
|
Desired permission mode (e.g., 0o755). |
# ensureOutputPort() → {Promise.<number>}
Ensures that the output port is set in the configuration.
The output port number.
Promise.<number>
# ensureRequiredConfig() → {Promise.<Object>}
Ensures that all required fields in the configuration are set.
The updated user configuration object.
Promise.<Object>
# execShellCommand(cmd) → {Promise.<string>}
Executes a shell command and returns the result as a promise.
Parameters:
Name | Type | Description |
---|---|---|
cmd |
string
|
The command to run, with space-separated arguments. |
- A promise that resolves with the command output.
Promise.<string>
# initializeDirectories()
Initializes all necessary directories and checks their permissions.