mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-14 08:51:48 +00:00
enhance PHP installer
This commit is contained in:
@@ -129,7 +129,8 @@ function install_ioncube() {
|
||||
run rm -fr /usr/lib/php/loaders/ioncube
|
||||
fi
|
||||
|
||||
run pushd "${BUILD_DIR}"
|
||||
local CURRENT_DIR && CURRENT_DIR=$(pwd)
|
||||
run cd "${BUILD_DIR}"
|
||||
|
||||
ARCH=${ARCH:-$(uname -p)}
|
||||
if [[ "${ARCH}" == "x86_64" ]]; then
|
||||
@@ -144,7 +145,7 @@ function install_ioncube() {
|
||||
|
||||
echo "Installing latest ionCube PHP loader..."
|
||||
run mv -f ioncube /usr/lib/php/loaders/
|
||||
run popd
|
||||
run cd "${CURRENT_DIR}"
|
||||
}
|
||||
|
||||
# Enable ionCube Loader
|
||||
@@ -232,7 +233,8 @@ function install_sourceguardian() {
|
||||
run mkdir -p "${BUILD_DIR}/sourceguardian"
|
||||
fi
|
||||
|
||||
run pushd "${BUILD_DIR}/sourceguardian"
|
||||
local CURRENT_DIR && CURRENT_DIR=$(pwd)
|
||||
run cd "${BUILD_DIR}/sourceguardian"
|
||||
|
||||
ARCH=${ARCH:-$(uname -p)}
|
||||
if [[ "${ARCH}" == "x86_64" ]]; then
|
||||
@@ -245,7 +247,7 @@ function install_sourceguardian() {
|
||||
run rm -f loaders.linux-x86.tar.gz
|
||||
fi
|
||||
|
||||
run popd
|
||||
run cd "${CURRENT_DIR}"
|
||||
|
||||
echo "Installing latest SourceGuardian PHP loader..."
|
||||
run mv -f "${BUILD_DIR}/sourceguardian" /usr/lib/php/loaders/
|
||||
|
||||
@@ -148,9 +148,9 @@ function init_php_fpm_removal() {
|
||||
# Remove PHP repository.
|
||||
run add-apt-repository -y --remove ppa:ondrej/php
|
||||
|
||||
# Remove PHP loaders.
|
||||
if [[ -d /usr/lib/php/loaders ]]; then
|
||||
run rm -fr /usr/lib/php/loaders
|
||||
# Remove all the rest PHP lib files.
|
||||
if [[ -d /usr/lib/php ]]; then
|
||||
run rm -fr /usr/lib/php
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user