mirror of
https://github.com/YunoHost-Apps/agora_ynh.git
synced 2024-09-03 18:06:21 +02:00
Update _common
This commit is contained in:
parent
dc6fe984f4
commit
743a99c8b9
1 changed files with 3 additions and 12 deletions
|
@ -1,13 +1,4 @@
|
|||
AGORA_SOURCE_URL="https://www.agora-project.net/?ctrl=offline&action=download"
|
||||
|
||||
extract_source() {
|
||||
local DESTDIR=$1
|
||||
|
||||
# retrieve and extract Agora tarball
|
||||
rc_tarball="${DESTDIR}/agora.zip"
|
||||
sudo wget -q -O "$rc_tarball" "$AGORA_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"
|
||||
SETUP_SOURCE () { # Télécharge la source, décompresse et copie dans $final_path
|
||||
# Décompresse la source
|
||||
sudo unzip ../sources/agora_project_3.2.2.zip /var/www/$app
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue