d65f36bb2a
- use %%WWWDIR%% macro instead hard coded path - support apache versions > 13 - make sure we use the rc script from port - use "env" in generated crontab - make sure crontab entries are removed during deinstall - sort pkg-plist (use genplist) - try to uninstall clean PR: ports/158779 Submitted by: ohauer Approved by: <manos _at_ cs.pdx.edu> (maintainer)
12 lines
252 B
Bash
12 lines
252 B
Bash
#!/bin/sh
|
|
|
|
PATH=/bin:/usr/bin:/usr/sbin
|
|
CRONTAB=/etc/crontab
|
|
|
|
if [ "$2" = "DEINSTALL" ]; then
|
|
# delete entries in crontab
|
|
sed -i "" -e '/# == ourmon port cron start/,/# == ourmon port cron end/{' \
|
|
-e 'd' \
|
|
-e '}' ${CRONTAB}
|
|
fi
|