mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
[fix] add sudo for extract
This commit is contained in:
parent
42ee193cc8
commit
80fc602a11
2 changed files with 4 additions and 5 deletions
|
@ -28,13 +28,13 @@ extract_roundcube() {
|
|||
|
||||
# retrieve and extract Roundcube tarball
|
||||
rc_tarball="${DESTDIR}/roundcube.tar.gz"
|
||||
wget -q -O "$rc_tarball" "$ROUNDCUBE_SOURCE_URL" \
|
||||
sudo wget -q -O "$rc_tarball" "$ROUNDCUBE_SOURCE_URL" \
|
||||
|| ynh_die "Unable to download Roundcube tarball"
|
||||
echo "$ROUNDCUBE_SOURCE_SHA256 $rc_tarball" | sha256sum -c >/dev/null \
|
||||
|| ynh_die "Invalid checksum of downloaded tarball"
|
||||
tar xf "$rc_tarball" -C "$DESTDIR" --strip-components 1 \
|
||||
sudo tar xf "$rc_tarball" -C "$DESTDIR" --strip-components 1 \
|
||||
|| ynh_die "Unable to extract Roundcube tarball"
|
||||
rm "$rc_tarball"
|
||||
sudo rm "$rc_tarball"
|
||||
|
||||
# apply patches
|
||||
# (cd "$DESTDIR" \
|
||||
|
@ -42,7 +42,7 @@ extract_roundcube() {
|
|||
# || ynh_die "Unable to apply patches to Roundcube"
|
||||
|
||||
# copy composer.json-dist for Roundcube with complete dependencies
|
||||
cp "${PKGDIR}/sources/composer.json-dist" "${DESTDIR}/composer.json-dist"
|
||||
sudo cp "${PKGDIR}/sources/composer.json-dist" "${DESTDIR}/composer.json-dist"
|
||||
}
|
||||
|
||||
# Execute a command as another user
|
||||
|
|
|
@ -42,7 +42,6 @@ grep -q -R 'jessie-backports' /etc/apt/sources.list{,.d} || {
|
|||
}
|
||||
|
||||
# Install dependencies
|
||||
# ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control
|
||||
ynh_install_app_dependencies php5-cli php5-common php5-intl php5-json \
|
||||
php5-mcrypt php-pear php-auth-sasl php-mail-mime php-patchwork-utf8 \
|
||||
php-net-smtp php-net-socket php-crypt-gpg \
|
||||
|
|
Loading…
Reference in a new issue