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:
parent
de6f4acab8
commit
0023eb9c55
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue