mirror of
https://github.com/YunoHost-Apps/ssh_chroot_dir_ynh.git
synced 2024-09-03 20:26:26 +02:00
Fix IS_PACKAGE_CHECK
This commit is contained in:
parent
3e2bed193b
commit
bde74fea45
1 changed files with 6 additions and 1 deletions
|
@ -27,7 +27,12 @@ CHECK_SIZE () { # Vérifie avant chaque backup que l'espace est suffisant
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
IS_PACKAGE_CHECK () {
|
IS_PACKAGE_CHECK () {
|
||||||
return $(env | grep -c container=lxc)
|
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]
|
||||||
|
then
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue