View | Details | Raw Unified | Return to bug 54047
Collapse All | Expand All

(-)a/base/univention-lib/shell/umc.sh (-1 / +4 lines)
 Lines 67-73   umc_frontend_new_hash () { Link Here 
67
	if [ -n "$DPKG_MAINTSCRIPT_PACKAGE" ]; then
67
	if [ -n "$DPKG_MAINTSCRIPT_PACKAGE" ]; then
68
		# touch all html, js, css files from the package to prevent the mtime to be the package build time.
68
		# touch all html, js, css files from the package to prevent the mtime to be the package build time.
69
		# the mtime needs to be the package extraction time, so that apache serves correct caching information
69
		# the mtime needs to be the package extraction time, so that apache serves correct caching information
70
		find $(dpkg -L "$DPKG_MAINTSCRIPT_PACKAGE" | grep '^/') -maxdepth 0 -mindepth 0 -type f \( -name '*.js' -or -name '*.html' -or -name '*.css' \) -exec touch {} \;
70
		dpkg -L "$DPKG_MAINTSCRIPT_PACKAGE" | grep '^/' | while IFS='' read -r line
71
		do
72
			find "$line" -maxdepth 0 -mindepth 0 -type f \( -name '*.js' -or -name '*.html' -or -name '*.css' \) -exec touch {} \;
73
		done
71
	fi
74
	fi
72
75
73
	/usr/sbin/univention-config-registry set "umc/web/cache_bust=$(date +%s)"
76
	/usr/sbin/univention-config-registry set "umc/web/cache_bust=$(date +%s)"

Return to bug 54047