Bug 46142 - Unbound variable
Summary: Unbound variable
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: sysvinit-tmpfiles (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 minor
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-14 11:17 MSK by Andrew Borodin
Modified: 2023-05-19 11:47 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Borodin 2023-05-14 11:17:09 MSK
p10 sysv

sysvinit-tmpfiles-1.0-alt1.noarch

Cron шлёт письма:

Date: Sat, 13 May 2023 19:12:04 +0300 (MSK)
To: root@myhost.mydomain
Subject: Cron <root@myhost> run-parts /etc/cron.daily
From: Cron Daemon <root@myhost.mydomain>
Delivered-To: root@myhost.mydomain
Message-Id: <20230513161541.5F415806A@myhost.mydomain>

/etc/cron.daily/tmpfiles: line 5: initfile: unbound variable
Comment 1 Alexander Makeenkov 2023-05-19 11:47:50 MSK
Ошибка в скрипте, используемая переменная initfile не определена:

# cat /etc/cron.daily/tmpfiles
#! /bin/sh -eu

systemd_tmpfiles=/sbin/systemd-tmpfiles

if [ -x "$systemd_tmpfiles" ] && [ -x "$initfile" ]; then
        "$systemd_tmpfiles" --clean 2>/dev/null ||:
fi