From 0023eb9c55d7bd9e13797ae4d584bcb97483c20a Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Thu, 15 Jun 2017 21:09:46 +0200 Subject: [PATCH] more sudo --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 24cb3c3..dbfb212 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -82,7 +82,7 @@ exec_composer() { shift 1 COMPOSER_HOME="${WORKDIR}/.composer" \ - /usr/bin/php7.0 "${WORKDIR}/composer.phar" $@ \ + sudo /usr/bin/php7.0 "${WORKDIR}/composer.phar" $@ \ -d "${WORKDIR}" --quiet --no-interaction } @@ -95,7 +95,7 @@ init_composer() { # install composer curl -sS https://getcomposer.org/installer \ | COMPOSER_HOME="${DESTDIR}/.composer" \ - /usr/bin/php7.0 -- --quiet --install-dir="$DESTDIR" \ + sudo /usr/bin/php7.0 -- --quiet --install-dir="$DESTDIR" \ || ynh_die "Unable to install Composer" # update dependencies to create composer.lock