From cb95a6219faf2325c68d26c71c4e815f94333767 Mon Sep 17 00:00:00 2001 From: darkalchemy Date: Sun, 3 Feb 2019 07:37:47 -0500 Subject: [PATCH] fix: composer not found --- README.md | 2 +- installer.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90a21dc..4b049d4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Pu-239 Installer ============== A simple bash script to install Pu-239, Percona XtraDB 8.0 or MariaDB 10.3, PHP7.2-FPM or PHP7.3-FPM, nginx and all dependencies. -If chosen, redis, memcached and APCu can be installed. +If chosen, redis, memcached, APCu and GoAccess can be installed. This script has been tested on Ubuntu 16.04 LTS and Ubuntu 18.84 LTS. #### Please log in as a non-privileged user, NOT root, to run this script. diff --git a/installer.sh b/installer.sh index ce71f5f..c5d997a 100755 --- a/installer.sh +++ b/installer.sh @@ -365,7 +365,7 @@ service php${PHPVER}-fpm restart service nginx restart cd $PATHTOINSTALL chown -R $SUDO_USER:www-data $PATHTOINSTALL -sudo -u $SUDO_USER composer install --no-scripts --no-progress --no-suggest --optimize-autoloader +sudo -u $SUDO_USER $USER_HOME/bin/composer install --no-scripts --no-progress --no-suggest --optimize-autoloader sudo -u $SUDO_USER npm install chown -R www-data:www-data $PATHTOINSTALL