mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
[Fix] _common.sh
This commit is contained in:
parent
b1f3cf1d8d
commit
ea6fa45786
1 changed files with 15 additions and 0 deletions
|
@ -27,3 +27,18 @@ CHECK_FINALPATH () { # Vérifie que le dossier de destination n'est pas déjà u
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GARRADIN_VERSION="0.7.7"
|
||||||
|
GARRADIN_SOURCE_URL="http://dev.kd2.org/garradin/files/garradin-${GARRADIN_VERSION}.tar.bz2"
|
||||||
|
|
||||||
|
extract_source() {
|
||||||
|
local DESTDIR=$1
|
||||||
|
|
||||||
|
# retrieve and extract Garradin tarball
|
||||||
|
rc_tarball="${DESTDIR}/garradin.tar.gz"
|
||||||
|
sudo wget -q -O "$rc_tarball" "$GARRADIN_SOURCE_URL" \
|
||||||
|
|| ynh_die "Unable to download source tarball"
|
||||||
|
sudo tar -xf "$rc_tarball" -C "$DESTDIR" --strip-components 1 \
|
||||||
|
|| ynh_die "Unable to extract source tarball"
|
||||||
|
sudo rm "$rc_tarball"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue