mkpasswd -> uuidgen, as in upstream
This commit is contained in:
parent
10ef25bec0
commit
20b7ea7035
@ -21,7 +21,7 @@ Requires: ncurses
|
|||||||
Requires: pcre
|
Requires: pcre
|
||||||
Requires: jemalloc
|
Requires: jemalloc
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(post): /sbin/chkconfig, /usr/bin/mkpasswd
|
Requires(post): /sbin/chkconfig, /usr/bin/uuidgen
|
||||||
Requires(preun): /sbin/chkconfig
|
Requires(preun): /sbin/chkconfig
|
||||||
Requires(preun): /sbin/service
|
Requires(preun): /sbin/service
|
||||||
Requires(preun): initscripts
|
Requires(preun): initscripts
|
||||||
@ -249,7 +249,7 @@ exit 0
|
|||||||
/sbin/chkconfig --add varnish
|
/sbin/chkconfig --add varnish
|
||||||
/sbin/chkconfig --add varnishlog
|
/sbin/chkconfig --add varnishlog
|
||||||
/sbin/chkconfig --add varnishncsa
|
/sbin/chkconfig --add varnishncsa
|
||||||
test -f /etc/varnish/secret || (mkpasswd > /etc/varnish/secret && chmod 0600 /etc/varnish/secret)
|
test -f /etc/varnish/secret || (uuidgen > /etc/varnish/secret && chmod 0600 /etc/varnish/secret)
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -lt 1 ]; then
|
if [ $1 -lt 1 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user