Verified Commit 96aef726 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Writable dirs implicitly made writable by collect_static in entrypoint

parent 96f59e22
Loading
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -179,13 +179,7 @@ get_writable_dirs()
	)
	MEDIA=${media:-${content}/uploads}
	CACHE=${content}/cache
}

setup_writable()
{
	# UID values change on every run, ensure the owner and group are set
	# correctly on the media directory/volume.
	get_writable_dirs
	mkdir -p "${MEDIA}" "${CACHE}"
	chown -R ${WORKER_USER}:${WORKER_USER} "${MEDIA}" "${CACHE}"
}

@@ -340,7 +334,6 @@ case "$1" in
		create_config
		setup_components
		setup_debug
		setup_writable
		collect_static
		generate_static
		setup_sandbox