SHA256
1
0
forked from pool/kdump

Accepting request 260490 from home:Ledest:misc

fix bashisms in post/postun scripts

OBS-URL: https://build.opensuse.org/request/show/260490
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=115
This commit is contained in:
Petr Tesařík 2014-11-09 17:54:50 +00:00 committed by Git OBS Bridge
parent 18d71d6f5b
commit 3d5bc3069d
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 09 05:26:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in post/postun scripts
-------------------------------------------------------------------
Fri Sep 26 14:13:54 UTC 2014 - ptesarik@suse.cz

View File

@ -183,11 +183,11 @@ if [ ! -f /etc/sysconfig/kdump ] ; then
change_permission=1
fi
%{fillup_and_insserv -n kdump boot.kdump}
if (( $change_permission )) ; then
if [ "$change_permission" = 1 ]; then
chmod 0600 /etc/sysconfig/kdump
fi
# if /var/log/dump is empty, make it a symlink to /var/crash
if test -d /var/log/dump && rmdir /var/log/dump &>/dev/null ||
if test -d /var/log/dump && rmdir /var/log/dump >/dev/null 2>&1 ||
! test -d /var/log/dump ; then
ln -snf /var/crash /var/log/dump
fi
@ -206,7 +206,7 @@ echo "Stopping kdump ..."
# force regeneration of kdumprd
touch /etc/sysconfig/kdump
# delete symbolic link
rm /var/log/dump &>/dev/null || true
rm /var/log/dump >/dev/null 2>&1 || true
%restart_on_update boot.kdump
%insserv_cleanup
%if 0%{?suse_version} > 1220