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 GitHub
parent 87d92b35a0
commit d76dc40151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,6 +376,8 @@ ynh_smart_mktemp () {
local tmpdir=/ local tmpdir=/
elif is_there_enough_space /home; then elif is_there_enough_space /home; then
local tmpdir=/home local tmpdir=/home
else
ynh_die "Insufficient free space to continue..."
fi fi
echo "$(sudo mktemp --directory --tmpdir="$tmpdir")" echo "$(sudo mktemp --directory --tmpdir="$tmpdir")"