1
0
Fork 0
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:
Maniack Crudelis 2018-09-21 23:32:02 +02:00 committed by Mickaël Martin
parent ad59d740f1
commit 500288e872

View file

@ -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")"