-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,9 @@ start_spinner "Initializing MySql..." && | |
gp await-port 3306 && | ||
stop_spinner $? | ||
|
||
# Globals | ||
current_php_version="$(.gp/bash/utils.sh php_version)" | ||
|
||
# BEGIN: parse .vscode/settings.json | ||
if [[ $(bash .gp/bash/utils.sh parse_ini_value starter.ini development vscode_disable_preview_tab) == 1 ]]; then | ||
msg="parsing .vscode/settings.json as per starter.ini" | ||
|
@@ -205,22 +208,26 @@ if [ ! -d "$GITPOD_REPO_ROOT/vendor" ]; then | |
|
||
# Install https://www.ioncube.com/loaders.php | ||
installed_ioncube_gen=$(bash .gp/bash/utils.sh parse_ini_value starter.ini ioncube install) | ||
if [ "$installed_ioncube_gen" == 1 ]; then | ||
msg="Installing ioncube loader" | ||
log_silent "$msg" && start_spinner "$msg" \ | ||
&& wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -O /tmp/ioncube.tar.gz \ | ||
&& tar xzf /tmp/ioncube.tar.gz -C /tmp \ | ||
&& sudo cp /tmp/ioncube/ioncube_loader_lin_7.4.so /usr/lib/php/20190902/ioncube_loader_lin_7.4.so \ | ||
&& sudo bash -c 'echo "zend_extension=ioncube_loader_lin_7.4.so" > /etc/php/7.4/apache2/conf.d/10-ioncube.ini' \ | ||
&& sudo bash -c 'echo "zend_extension=ioncube_loader_lin_7.4.so" > /etc/php/7.4/cli/conf.d/10-ioncube.ini' \ | ||
&& rm -rf /tmp/ioncube.tar.gz /tmp/ioncube | ||
err_code=$? | ||
if [[ $err_code != 0 ]]; then | ||
stop_spinner $err_code | ||
log -e "ERROR: $msg" | ||
if [[ $installed_ioncube_gen == 1 ]]; then | ||
if [[ $(bash .gp/bash/utils.sh comp_ver_lt "$current_php_version" 7.4) == 0 ]]; then | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
apolopena
Author
Owner
|
||
msg="Installing ioncube loader" | ||
log_silent "$msg" && start_spinner "$msg" \ | ||
&& wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz -O /tmp/ioncube.tar.gz \ | ||
&& tar xzf /tmp/ioncube.tar.gz -C /tmp \ | ||
&& sudo cp /tmp/ioncube/ioncube_loader_lin_7.4.so /usr/lib/php/20190902/ioncube_loader_lin_7.4.so \ | ||
&& sudo bash -c 'echo "zend_extension=ioncube_loader_lin_7.4.so" > /etc/php/7.4/apache2/conf.d/10-ioncube.ini' \ | ||
&& sudo bash -c 'echo "zend_extension=ioncube_loader_lin_7.4.so" > /etc/php/7.4/cli/conf.d/10-ioncube.ini' \ | ||
&& rm -rf /tmp/ioncube.tar.gz /tmp/ioncube | ||
err_code=$? | ||
if [[ $err_code != 0 ]]; then | ||
stop_spinner $err_code | ||
log -e "ERROR: $msg" | ||
else | ||
stop_spinner $err_code | ||
log "SUCCESS: $msg" | ||
fi | ||
else | ||
stop_spinner $err_code | ||
log "SUCCESS: $msg" | ||
log -e "WARNING: ioncube loader does not support PHP 8+. Installation skipped. Fix your starter.ini" | ||
fi | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@apolopena
Shouldn't this be (== 1) ?