[2019-05-06 07:33] Tito <farmat...@tiscali.it> > [ Dmitry Bogatov ] > > - log_success_msg "Done checking file systems. > > -A log is being saved in ${FSCK_LOGFILE} if that location is writable." > > + log_success_msg 'Done checking file systems' > > + log_success_msg "Log is being saved in > > ${FSCK_LOGFILE} if that location is writable" > > fi > > fi
> Hi, > maybe something like: > > if test -w ${FSCK_LOGFILE} ; then > log_success_msg "Log is saved in ${FSCK_LOGFILE} > else > log_success_msg "Cannot save log in ${FSCK_LOGFILE} > fi Thank you, Tito. But I am not sure this is correct: As I understand the whole point of "logsave" is that if directory of logfile (/var/log/fsck) does not exist, "logsave" will wait till it appears. So, by the time we are logging this message, ${FSCK_LOGFILE} may not exists yet, but its future content is hanging somewhere in memory of "logsave" process. Problem is that I do not understand, when /var/log/fsck exist for sure. Collegues, I need help with evaluating proposed change. -- Note, that I send and fetch email in batch, once every 24 hours. If matter is urgent, try https://t.me/kaction --