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

Update install

This commit is contained in:
Thatoo 2019-06-05 23:19:49 +02:00 committed by GitHub
parent 4093b6077d
commit 4355f0415c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,10 +22,9 @@ 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 "web" | head -1 | cut -d\" -f4) # Download, check integrity, uncompress and patch the source from app.src
wget -nc --quiet $url -P /tmp ynh_script_progression --message="Setting up source files..." --time --weight=1
sudo unzip -q /tmp/cesium-*-web.zip -d $src_path ynh_setup_source --dest_dir=$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