diff --git a/scripts/install b/scripts/install index 04288eb..70672bf 100755 --- a/scripts/install +++ b/scripts/install @@ -8,7 +8,7 @@ app=$YNH_APP_INSTANCE_NAME domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH is_public=$YNH_APP_ARG_IS_PUBLIC -version="0.1.16" +version="0.1.18" # Source 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" \ || 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 src_path=/var/www/$app sudo mkdir -p $src_path diff --git a/scripts/remove b/scripts/remove index 5104f30..9d68d44 100755 --- a/scripts/remove +++ b/scripts/remove @@ -13,5 +13,5 @@ sudo rm -rf /var/www/$app # Remove configuration files sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf -# Resload nginx service +# Reload nginx service sudo service nginx reload diff --git a/scripts/upgrade b/scripts/upgrade index 0839c48..6bfc862 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -11,12 +11,12 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get "$app" domain) path=$(ynh_app_setting_get "$app" path) is_public=$(ynh_app_setting_get "$app" is_public) -version="0.1.16" +version="0.1.18" # Remove trailing "/" for next commands path=${path%/} -# Copy source files +# Retreive sources and install them src_path=/var/www/$app sudo rm -rf $src_path sudo mkdir -p $src_path