diff --git a/helpers/helpers.v1.d/apt b/helpers/helpers.v1.d/apt index c3fd9aa07..26d37b2b5 100644 --- a/helpers/helpers.v1.d/apt +++ b/helpers/helpers.v1.d/apt @@ -187,6 +187,8 @@ ynh_package_install_from_equivs() { # Build and install the package local TMPDIR=$(mktemp --directory) mkdir -p ${TMPDIR}/${pkgname}/DEBIAN/ + # For some reason, dpkg-deb insists for folder perm to be 755 and sometimes it's 777 o_O? + chmod -R 755 ${TMPDIR}/${pkgname} # Note that the cd executes into a sub shell # Create a fake deb package with equivs-build and the given control file diff --git a/helpers/helpers.v2.1.d/apt b/helpers/helpers.v2.1.d/apt index 3930f5e9c..3d58f2305 100644 --- a/helpers/helpers.v2.1.d/apt +++ b/helpers/helpers.v2.1.d/apt @@ -97,6 +97,9 @@ ynh_apt_install_dependencies() { # Prepare the virtual-dependency control file for dpkg-deb --build local TMPDIR=$(mktemp --directory) mkdir -p ${TMPDIR}/${app_ynh_deps}/DEBIAN + # For some reason, dpkg-deb insists for folder perm to be 755 and sometimes it's 777 o_O? + chmod -R 755 ${TMPDIR}/${pkgname} + cat >${TMPDIR}/${app_ynh_deps}/DEBIAN/control <