1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00
This commit is contained in:
Moul 2016-08-25 14:22:59 +02:00
parent 9416c47a06
commit 79f3447460
2 changed files with 5 additions and 4 deletions

View file

@ -24,8 +24,8 @@ 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 "web" | head -1 | cut -d\" -f4) 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
sudo chown -R www-data: $src_path sudo chown -R www-data: $src_path
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory

View file

@ -21,8 +21,9 @@ 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 "web" | head -1 | cut -d\" -f4) 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 rm -f /tmp/cesium-web-*.zip sudo unzip -q /tmp/cesium-*-web.zip -d $src_path
sudo rm -f /tmp/cesium-*-web.zip
sudo chown -R www-data: $src_path sudo chown -R www-data: $src_path
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory