1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

more sudo

This commit is contained in:
Sebastian Gumprich 2017-06-15 21:09:46 +02:00
parent de6f4acab8
commit 0023eb9c55

View file

@ -82,7 +82,7 @@ exec_composer() {
shift 1 shift 1
COMPOSER_HOME="${WORKDIR}/.composer" \ COMPOSER_HOME="${WORKDIR}/.composer" \
/usr/bin/php7.0 "${WORKDIR}/composer.phar" $@ \ sudo /usr/bin/php7.0 "${WORKDIR}/composer.phar" $@ \
-d "${WORKDIR}" --quiet --no-interaction -d "${WORKDIR}" --quiet --no-interaction
} }
@ -95,7 +95,7 @@ init_composer() {
# install composer # install composer
curl -sS https://getcomposer.org/installer \ curl -sS https://getcomposer.org/installer \
| COMPOSER_HOME="${DESTDIR}/.composer" \ | 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" || ynh_die "Unable to install Composer"
# update dependencies to create composer.lock # update dependencies to create composer.lock