File: prerm-nginx

package info (click to toggle)
nginx 1.28.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 9,472 kB
  • sloc: ansic: 169,389; sh: 613; perl: 439; python: 240; makefile: 126; cpp: 19
file content (10 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
	for confpair in #NAMES# ; do
		from=$(echo $confpair | cut -d: -f1)
		to=$(echo $confpair | cut -d: -f2)

		if [ -L /etc/nginx/modules-enabled/$to ]; then
			mv /etc/nginx/modules-enabled/$to /etc/nginx/modules-enabled/$to.removed
		fi
	done
fi