diff --git a/base/univention-lib/shell/umc.sh b/base/univention-lib/shell/umc.sh index e8348bf42b..ecfb9337a0 100644 --- a/base/univention-lib/shell/umc.sh +++ b/base/univention-lib/shell/umc.sh @@ -67,7 +67,10 @@ umc_frontend_new_hash () { if [ -n "$DPKG_MAINTSCRIPT_PACKAGE" ]; then # touch all html, js, css files from the package to prevent the mtime to be the package build time. # the mtime needs to be the package extraction time, so that apache serves correct caching information - find $(dpkg -L "$DPKG_MAINTSCRIPT_PACKAGE" | grep '^/') -maxdepth 0 -mindepth 0 -type f \( -name '*.js' -or -name '*.html' -or -name '*.css' \) -exec touch {} \; + dpkg -L "$DPKG_MAINTSCRIPT_PACKAGE" | grep '^/' | while IFS='' read -r line + do + find "$line" -maxdepth 0 -mindepth 0 -type f \( -name '*.js' -or -name '*.html' -or -name '*.css' \) -exec touch {} \; + done fi /usr/sbin/univention-config-registry set "umc/web/cache_bust=$(date +%s)"