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

[fix] remove zip to avoid unzip many versions.

This commit is contained in:
Moul 2016-07-04 14:49:51 +02:00
parent 33b784ca54
commit ffb3a65e66
2 changed files with 2 additions and 0 deletions

View file

@ -25,6 +25,7 @@ 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)
wget -nc --quiet $url -P /tmp
sudo unzip -q /tmp/cesium-web-*.zip -d $src_path
sudo rm -f /tmp/cesium-web-*.zip
sudo chown -R www-data: $src_path
# Modify Nginx configuration file and copy it to Nginx conf directory

View file

@ -22,6 +22,7 @@ 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)
wget -nc --quiet $url -P /tmp
sudo unzip -q /tmp/cesium-web-*.zip -d $src_path
sudo rm -f /tmp/cesium-web-*.zip
sudo chown -R www-data: $src_path
# Modify Nginx configuration file and copy it to Nginx conf directory