1
0
Fork 0
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:
magikcypress 2017-06-02 19:02:29 +02:00
parent 42ee193cc8
commit 80fc602a11
No known key found for this signature in database
GPG key ID: 3B3C7CD61957AC9A
2 changed files with 4 additions and 5 deletions

View file

@ -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

View file

@ -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 \