Allow for configureLogrotate to fail without failing configure

In previous commit I forgot to invert the check when switching
"IS_SYSTEMD" and "!IS_SYSTEMD" if-else statements.

Change-Id: I8eb8e7981c6353a2e60064eb3a6e35821ea2a0d0
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rocm_smi_lib commit: b99867eb80]
Этот коммит содержится в:
Galantsev, Dmitrii
2023-09-20 10:05:34 -05:00
родитель 73ec4e32e6
Коммит 3fceeef3f0
2 изменённых файлов: 4 добавлений и 4 удалений
+2 -2
Просмотреть файл
@@ -56,7 +56,7 @@ EOF
# to use daily cron jobs - see https://stackoverflow.com/a/69465677
if [ -d /run/systemd/system ]; then
systemctl list-timers | grep -iq logrotate
if [ $? -ne 0 ]; then
if [ $? -eq 0 ]; then
IS_SYSTEMD=1
fi
fi
@@ -107,7 +107,7 @@ do_ldconfig() {
case "$1" in
( configure )
do_ldconfig
do_configureLogrotate
do_configureLogrotate || return 0
;;
( abort-upgrade | abort-remove | abort-deconfigure )
echo "$1"
+2 -2
Просмотреть файл
@@ -56,7 +56,7 @@ EOF
# to use daily cron jobs - see https://stackoverflow.com/a/69465677
if [ -d /run/systemd/system ]; then
systemctl list-timers | grep -iq logrotate
if [ $? -ne 0 ]; then
if [ $? -eq 0 ]; then
IS_SYSTEMD=1
fi
fi
@@ -107,5 +107,5 @@ do_ldconfig() {
# post install or upgrade, $i is 1 or 2 -> do these actions
if [ "$1" -ge 1 ]; then
do_ldconfig
do_configureLogrotate
do_configureLogrotate || return 0
fi