diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b520fc2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2024 YunoHost contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/doc/DESCRIPTION.md b/doc/DESCRIPTION.md new file mode 100644 index 0000000..13ce5c4 --- /dev/null +++ b/doc/DESCRIPTION.md @@ -0,0 +1,15 @@ +Superset is a modern data exploration and data visualization platform. Superset can replace or augment proprietary business intelligence tools for many teams. Superset integrates well with a variety of data sources. + +Superset provides: + +- A no-code interface for building charts quickly +- A powerful, web-based SQL Editor for advanced querying +- A lightweight semantic layer for quickly defining custom dimensions and metrics +- Out of the box support for nearly any SQL database or data engine +- A wide array of beautiful visualizations to showcase your data, ranging from simple bar charts to geospatial visualizations +- Lightweight, configurable caching layer to help ease database load +- Highly extensible security roles and authentication options +- An API for programmatic customization +- A cloud-native architecture designed from the ground up for scale + +*-- Superset's Github repository* diff --git a/doc/screenshots/explore.jpg b/doc/screenshots/explore.jpg new file mode 100644 index 0000000..4927d62 Binary files /dev/null and b/doc/screenshots/explore.jpg differ diff --git a/doc/screenshots/explore.jpg:Zone.Identifier b/doc/screenshots/explore.jpg:Zone.Identifier new file mode 100644 index 0000000..540ab83 --- /dev/null +++ b/doc/screenshots/explore.jpg:Zone.Identifier @@ -0,0 +1,4 @@ +[ZoneTransfer] +ZoneId=3 +ReferrerUrl=https://github.com/ +HostUrl=https://raw.githubusercontent.com/apache/superset/master/superset-frontend/src/assets/images/screenshots/explore.jpg diff --git a/manifest.toml b/manifest.toml index bfc5c11..4b3955d 100644 --- a/manifest.toml +++ b/manifest.toml @@ -23,7 +23,7 @@ yunohost = '>= 11.2' architectures = "all" multi_instance = true ldap = true -sso = "false" +sso = false disk = "1G" ram.build = "500M" ram.runtime = "500M" @@ -40,6 +40,8 @@ ram.runtime = "500M" [install.init_admin_permission] type = "group" default = "admins" + ask.en = "Select which group should have Admin role in Superset. Other roles (Alpha, Gamma, Public) can be defined after installation." + ask.fr = "Sélectionnez quel groupe devrait avoir le rôle Admin dans Superset. Les autres rôles (Alpha, Gamma, Public) pourront être définis après installation." [resources] diff --git a/scripts/backup b/scripts/backup index 2481196..fbd1410 100644 --- a/scripts/backup +++ b/scripts/backup @@ -14,6 +14,8 @@ source /usr/share/yunohost/helpers #================================================= ynh_print_info --message="Declaring files to be backed up..." +ynh_backup --src_path="$install_dir" + ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/logrotate.d/$app" diff --git a/scripts/install b/scripts/install index 5af2767..2efb060 100644 --- a/scripts/install +++ b/scripts/install @@ -82,7 +82,7 @@ ynh_use_logrotate ynh_script_progression --message="Starting app's systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Running on http" --timeout=30 #================================================= # END OF SCRIPT diff --git a/scripts/remove b/scripts/remove index 0ba3664..dd256c8 100644 --- a/scripts/remove +++ b/scripts/remove @@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Removing user database for $app..." -ynh_mysql_remove_db --db_user=$userdata_db_user --db_name=$userdata_db_user +ynh_mysql_remove_db --db_user=$userdata_db_user --db_name=$userdata_db_name #================================================= # REMOVE SYSTEM CONFIGURATIONS diff --git a/scripts/upgrade b/scripts/upgrade index ab9821b..76ac03f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,7 +78,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Running on http" --timeout=30 #================================================= # END OF SCRIPT diff --git a/tests.toml b/tests.toml new file mode 100644 index 0000000..250bed4 --- /dev/null +++ b/tests.toml @@ -0,0 +1,9 @@ +#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json + +test_format = 1.0 + +[default] + + preinstall = """ + sudo yunohost user group add admins package_checker + """