mirror of
https://github.com/YunoHost-Apps/cesium_ynh.git
synced 2024-09-03 18:06:25 +02:00
[enh] get upstream version from a unique file.
This commit is contained in:
parent
4fda30c769
commit
e052c1ea9c
3 changed files with 3 additions and 2 deletions
1
conf/upstream_version
Normal file
1
conf/upstream_version
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0.1.18
|
|
@ -8,7 +8,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path=$YNH_APP_ARG_PATH
|
path=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
version="0.1.18"
|
|
||||||
|
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
@ -23,6 +22,7 @@ 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
|
||||||
|
version=$(cat ../conf/upstream_version)
|
||||||
wget -nc --quiet https://github.com/duniter/cesium/releases/download/$version/cesium-web-$version.zip -P /tmp
|
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
|
sudo unzip -q /tmp/cesium-web-$version.zip -d $src_path
|
||||||
sudo chown -R www-data: $src_path
|
sudo chown -R www-data: $src_path
|
||||||
|
|
|
@ -11,7 +11,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get "$app" domain)
|
||||||
path=$(ynh_app_setting_get "$app" path)
|
path=$(ynh_app_setting_get "$app" path)
|
||||||
is_public=$(ynh_app_setting_get "$app" is_public)
|
is_public=$(ynh_app_setting_get "$app" is_public)
|
||||||
version="0.1.18"
|
|
||||||
|
|
||||||
# Remove trailing "/" for next commands
|
# Remove trailing "/" for next commands
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
|
@ -20,6 +19,7 @@ path=${path%/}
|
||||||
src_path=/var/www/$app
|
src_path=/var/www/$app
|
||||||
sudo rm -rf $src_path
|
sudo rm -rf $src_path
|
||||||
sudo mkdir -p $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
|
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
|
sudo unzip -q /tmp/cesium-web-$version.zip -d $src_path
|
||||||
sudo chown -R www-data: $src_path
|
sudo chown -R www-data: $src_path
|
||||||
|
|
Loading…
Reference in a new issue