mirror of
https://github.com/YunoHost-Apps/cesium_ynh.git
synced 2024-09-03 18:06:25 +02:00
[enh] fix #3: automatically retrieve latest version.
This commit is contained in:
parent
08ca1c6916
commit
33b784ca54
3 changed files with 6 additions and 7 deletions
|
@ -1 +0,0 @@
|
|||
0.1.24
|
|
@ -22,9 +22,9 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
|||
# Retrieve sources and install them
|
||||
src_path=/var/www/$app
|
||||
sudo mkdir -p $src_path
|
||||
version=$(cat ../conf/upstream_version)
|
||||
wget -nc --quiet https://github.com/duniter/cesium/releases/download/$version/cesium-web-$version.zip -P /tmp
|
||||
sudo unzip -q /tmp/cesium-web-$version.zip -d $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 chown -R www-data: $src_path
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
|
|
|
@ -19,9 +19,9 @@ path=${path%/}
|
|||
src_path=/var/www/$app
|
||||
sudo rm -rf $src_path
|
||||
sudo mkdir -p $src_path
|
||||
version=$(cat ../conf/upstream_version)
|
||||
wget -nc --quiet https://github.com/duniter/cesium/releases/download/$version/cesium-web-$version.zip -P /tmp
|
||||
sudo unzip -q /tmp/cesium-web-$version.zip -d $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 chown -R www-data: $src_path
|
||||
|
||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
|
|
Loading…
Reference in a new issue