mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers: fix previous change about using YNH_APP_ACTION ... which is not defined in config panel context
This commit is contained in:
parent
17e0a11547
commit
8c25aa9b9f
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ YNH_APP_BASEDIR=${YNH_APP_BASEDIR:-$(realpath ..)}
|
||||||
ynh_exit_properly() {
|
ynh_exit_properly() {
|
||||||
local exit_code=$?
|
local exit_code=$?
|
||||||
|
|
||||||
if [[ "${YNH_APP_ACTION}" =~ ^install$|^upgrade$|^restore$ ]]
|
if [[ "${YNH_APP_ACTION:-}" =~ ^install$|^upgrade$|^restore$ ]]
|
||||||
then
|
then
|
||||||
rm -rf "/var/cache/yunohost/download/"
|
rm -rf "/var/cache/yunohost/download/"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue