mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ynh_clean_check_starting: Let's not trigger an error when vars aren't set
This commit is contained in:
parent
721f6f265e
commit
07f8d6d7af
1 changed files with 2 additions and 2 deletions
|
@ -171,12 +171,12 @@ ynh_systemd_action() {
|
|||
#
|
||||
# Requires YunoHost version 3.5.0 or higher.
|
||||
ynh_clean_check_starting () {
|
||||
if [ -n "$pid_tail" ]
|
||||
if [ -n "${pid_tail:-}" ]
|
||||
then
|
||||
# Stop the execution of tail.
|
||||
kill -SIGTERM $pid_tail 2>&1
|
||||
fi
|
||||
if [ -n "$templog" ]
|
||||
if [ -n "${templog:-}" ]
|
||||
then
|
||||
ynh_secure_remove --file="$templog" 2>&1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue