mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
4cbed426c6
* Update the MSC theme. * Stop the webmin service when the port is deinstalled, and restart it properly when it is update (if BATCH is set then nothing happens, so sysinstall will be happy at install time). Also, fix a $BATCH -> ${BATCH} error in Makefile.
13 lines
807 B
Plaintext
13 lines
807 B
Plaintext
etc/rc.d/webmin.sh
|
|
@comment Insert PLIST.lib-webmin here
|
|
@comment -=[ begin PLIST.lib-webmin ]=-
|
|
@comment -=[ end PLIST.lib-webmin ]=-
|
|
@comment upgrade configuration if etc/webmin exists
|
|
@exec [ ! -d %D/etc/webmin ] || echo | nostart=Y %D/lib/webmin/setup.sh
|
|
@comment run interactive setup if not in BATCH mode and no configuration exists
|
|
@exec [ -n "$BATCH" ] || ([ -d %D/etc/webmin ] || nostart=Y %D/lib/webmin/setup.sh)
|
|
@comment restart service if package is being upgraded (the upgrade procedure stopped it)
|
|
@exec [ -n "$BATCH" ] || ([ ! -d %D/etc/webmin ] || [ ! -x %D/etc/rc.d/webmin.sh ] || %D/etc/rc.d/webmin.sh start >/dev/null )
|
|
@comment stop service at deinstall time
|
|
@unexec [ -n "$BATCH" ] || ([ ! -d %D/etc/webmin ] || [ ! -x %D/etc/rc.d/webmin.sh ] || %D/etc/rc.d/webmin.sh stop >/dev/null )
|