diff --git a/scripts/install b/scripts/install index 0d43583..0387460 100755 --- a/scripts/install +++ b/scripts/install @@ -22,7 +22,7 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \ # Retrieve sources and install them src_path=/var/www/$app 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 sudo unzip -q /tmp/cesium-web-*.zip -d $src_path sudo rm -f /tmp/cesium-web-*.zip diff --git a/scripts/upgrade b/scripts/upgrade index a6217d2..d6e4cb8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -19,7 +19,7 @@ path=${path%/} src_path=/var/www/$app sudo rm -rf $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 sudo unzip -q /tmp/cesium-web-*.zip -d $src_path sudo rm -f /tmp/cesium-web-*.zip