Skip to content

Commit

Permalink
update inc/cpcheck.inc wgetver_check function in 123.09beta01
Browse files Browse the repository at this point in the history
only run wgetver_check function if nginx install is detected to ensure all yum dependencies are installed for workaround for https://community.centminmod.com/threads/wget-fail-to-upgrade-due-to-gcc-compiler-missing.8526/
  • Loading branch information
centminmod committed Aug 31, 2016
1 parent 44d1277 commit 64ca382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/cpcheck.inc
Expand Up @@ -136,7 +136,7 @@ gitenv_askupdate() {

wgetver_check() {
if [[ "$(wget -V | head -n1 | awk '{print $3}' | grep -q ${WGET_VERSION} >/dev/null 2>&1; echo $?)" != '0' ]]; then
if [ -f "${SCRIPT_DIR}/addons/wget.sh" ]; then
if [[ -f "${SCRIPT_DIR}/addons/wget.sh" && -f /usr/local/sbin/nginx ]]; then
echo "update wget to ${WGET_VERSION} version... one time task"
sleep 6
"${SCRIPT_DIR}/addons/wget.sh" install
Expand Down

0 comments on commit 64ca382

Please sign in to comment.