Update profile after installation to enable autocompletion
This commit is contained in:
parent
067802e0dd
commit
8d5515942e
|
@ -75,6 +75,7 @@ install -p -D -m 0755 %{_rabbit_server_ha_ocf} %{buildroot}%{_exec_prefix}/lib/o
|
|||
install -p -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/rabbitmq-server
|
||||
install -p -D -m 0755 %{_rabbitmqctl_autocomplete} %{buildroot}%{_sysconfdir}/profile.d/rabbitmqctl-autocomplete.sh
|
||||
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rabbitmq
|
||||
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
|
@ -138,6 +139,9 @@ fi
|
|||
|
||||
chmod -R o-rwx,g-w %{_localstatedir}/lib/rabbitmq/mnesia
|
||||
|
||||
# Update profile to enable autocompletion
|
||||
source /etc/profile
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
#Complete uninstall
|
||||
|
|
|
@ -35,6 +35,9 @@ chown -R rabbitmq:rabbitmq /var/log/rabbitmq
|
|||
chmod 750 /var/lib/rabbitmq/mnesia
|
||||
chmod -R o-rwx,g-w /var/lib/rabbitmq/mnesia
|
||||
|
||||
# Update profile to enable autocompletion
|
||||
source /etc/profile
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue