mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
bb1e1d09c6
and pkg_add, don't let setup.sh start the service. The setup script is now automatically called when not installing in batch mode. Also, "borrow" better pkg-plist implementation from the vim5 port: it allows to have @execs at the end of pkg-plist (thanks to O'Brien :-))
9 lines
423 B
Plaintext
9 lines
423 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)
|