mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
Create _common
This commit is contained in:
parent
5598b8a277
commit
5c84e234cf
1 changed files with 13 additions and 0 deletions
13
scripts/_common
Normal file
13
scripts/_common
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
ABANTECART_SOURCE_URL="https://github.com/abantecart/abantecart-src/archive/master.zip"
|
||||||
|
|
||||||
|
extract_source() {
|
||||||
|
local DESTDIR=$1
|
||||||
|
|
||||||
|
# retrieve and extract Abantecart Zip File
|
||||||
|
rc_tarball="${DESTDIR}/abantecart.zip"
|
||||||
|
sudo wget -q -O "$rc_tarball" "$ABANTECART_SOURCE_URL" \
|
||||||
|
|| ynh_die "Unable to download source tarball"
|
||||||
|
sudo unzip "$rc_tarball" "$DESTDIR" \
|
||||||
|
|| ynh_die "Unable to extract source tarball"
|
||||||
|
sudo rm "$rc_tarball"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue