mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
ynh_die if no free space
This commit is contained in:
parent
87d92b35a0
commit
d76dc40151
1 changed files with 2 additions and 0 deletions
|
@ -376,6 +376,8 @@ ynh_smart_mktemp () {
|
|||
local tmpdir=/
|
||||
elif is_there_enough_space /home; then
|
||||
local tmpdir=/home
|
||||
else
|
||||
ynh_die "Insufficient free space to continue..."
|
||||
fi
|
||||
|
||||
echo "$(sudo mktemp --directory --tmpdir="$tmpdir")"
|
||||
|
|
Loading…
Add table
Reference in a new issue