mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Only run these commands if the variables are not empty
This commit is contained in:
parent
3d87cc008c
commit
6124d1b899
1 changed files with 9 additions and 3 deletions
|
@ -165,9 +165,15 @@ ynh_systemd_action() {
|
||||||
#
|
#
|
||||||
# usage: ynh_clean_check_starting
|
# usage: ynh_clean_check_starting
|
||||||
ynh_clean_check_starting () {
|
ynh_clean_check_starting () {
|
||||||
|
if [ -n "$pid_tail" ]
|
||||||
|
then
|
||||||
# Stop the execution of tail.
|
# Stop the execution of tail.
|
||||||
kill -s 15 $pid_tail 2>&1
|
kill -s 15 $pid_tail 2>&1
|
||||||
|
fi
|
||||||
|
if [ -n "$templog" ]
|
||||||
|
then
|
||||||
ynh_secure_remove "$templog" 2>&1
|
ynh_secure_remove "$templog" 2>&1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue