| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/nami/node_modules/provisioner/lib/platform/ |
Upload File : |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const centos_1 = require("./centos");
const sysv_1 = require("./init_system/sysv");
const nami_wrapper_1 = require("../nami_wrapper");
const utils_1 = require("../utils");
class AmazonLinuxPlatform extends centos_1.CentosPlatform {
constructor(options) {
super(options);
this.platformTags.push("amazonlinux");
}
getInitSystem() {
if (!this.initSystem) {
this.initSystem = new sysv_1.SysVInitSystem();
}
return this.initSystem;
}
get distro() {
return "amazonlinux";
}
get distroVersion() {
return "2018.03";
}
installAndUpgradeSystemPackages(packages, upgrade = false) {
// epel repository is already available in Amazon Linux, but disabled
// https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
utils_1.retry(() => {
nami_wrapper_1.os.runProgram("yum-config-manager", ["--enable", "epel"], { logger: this.logger });
}, { logger: this.logger, errorMessage: "Unable to enablel epel" });
// openssl-libs is available as openssl-devel
let index = packages.findIndex((val) => val === "openssl-libs");
if (index >= 0)
packages[index] = "openssl-devel";
super.installAndUpgradeSystemPackages(packages, upgrade);
}
/**
* Determine additional directories to add to PATH
*/
getAdditionalSystemPaths() {
return super.getAdditionalSystemPaths().concat("/usr/local/bin");
}
}
exports.AmazonLinuxPlatform = AmazonLinuxPlatform;