mirror of
https://github.com/YunoHost-Apps/cesium_ynh.git
synced 2024-09-03 18:06:25 +02:00
[enh] upgrade to 1.1.18, remove root url check. Other small fixes.
This commit is contained in:
parent
77cd115650
commit
313697ad9b
3 changed files with 4 additions and 9 deletions
|
@ -8,7 +8,7 @@ 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.16"
|
version="0.1.18"
|
||||||
|
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
. /usr/share/yunohost/helpers
|
. /usr/share/yunohost/helpers
|
||||||
|
@ -20,11 +20,6 @@ ynh_app_setting_set "$app" is_public "$is_public"
|
||||||
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|
||||||
|| ynh_die "Path not available: ${domain}${path}"
|
|| ynh_die "Path not available: ${domain}${path}"
|
||||||
|
|
||||||
# Check url path is not root
|
|
||||||
if [[ $path == "/" ]]; then
|
|
||||||
ynh_die "Cesium can only be installed on a subpath domain"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
|
@ -13,5 +13,5 @@ sudo rm -rf /var/www/$app
|
||||||
# Remove configuration files
|
# Remove configuration files
|
||||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
# Resload nginx service
|
# Reload nginx service
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
|
@ -11,12 +11,12 @@ 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.16"
|
version="0.1.18"
|
||||||
|
|
||||||
# Remove trailing "/" for next commands
|
# Remove trailing "/" for next commands
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
|
|
||||||
# Copy source files
|
# Retreive sources and install them
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue