1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00

[fix] download url fail as there is a new zip release for ffos.

This commit is contained in:
Moul 2016-08-20 17:01:34 +02:00
parent c6da05d6eb
commit 9416c47a06
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
# Retrieve sources and install them # Retrieve sources and install them
src_path=/var/www/$app src_path=/var/www/$app
sudo mkdir -p $src_path sudo mkdir -p $src_path
url=$(curl -s https://api.github.com/repos/duniter/cesium/releases | grep "browser_" | grep "zip" | cut -d\" -f4 | head -1) url=$(curl -s https://api.github.com/repos/duniter/cesium/releases | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
wget -nc --quiet $url -P /tmp wget -nc --quiet $url -P /tmp
sudo unzip -q /tmp/cesium-web-*.zip -d $src_path sudo unzip -q /tmp/cesium-web-*.zip -d $src_path
sudo rm -f /tmp/cesium-web-*.zip sudo rm -f /tmp/cesium-web-*.zip

View file

@ -19,7 +19,7 @@ path=${path%/}
src_path=/var/www/$app src_path=/var/www/$app
sudo rm -rf $src_path sudo rm -rf $src_path
sudo mkdir -p $src_path sudo mkdir -p $src_path
url=$(curl -s https://api.github.com/repos/duniter/cesium/releases | grep "browser_" | grep "zip" | cut -d\" -f4 | head -1) url=$(curl -s https://api.github.com/repos/duniter/cesium/releases | grep "browser_" | grep "web" | head -1 | cut -d\" -f4)
wget -nc --quiet $url -P /tmp wget -nc --quiet $url -P /tmp
sudo unzip -q /tmp/cesium-web-*.zip -d $src_path sudo unzip -q /tmp/cesium-web-*.zip -d $src_path
sudo rm -f /tmp/cesium-web-*.zip sudo rm -f /tmp/cesium-web-*.zip