This commit is contained in:
Éric Gaspar 2023-07-17 14:25:23 +02:00
parent b9692e5c9a
commit 8de59f2d84
4 changed files with 7 additions and 38 deletions

View file

@ -2,26 +2,23 @@ packaging_format = 2
id = "pydio"
name = "Pydio"
description.en = "A file sharing platform"
description.fr = "Une plateforme de partage de fichiers"
description.en = "File sharing platform"
description.fr = "Plateforme de partage de fichiers"
version = "4.2.1~ynh1"
maintainers = ["salamandar"]
[upstream]
# NB: Only the "license" key is mandatory. Remove entries for which there's no relevant data
license = "AGPL-3.0"
website = "https://pydio.com"
# demo = "https://demo.example.com"
admindoc = "https://pydio.com/en/docs"
# userdoc = "https://yunohost.org/apps"
code = "https://github.com/pydio/cells"
cpe = "cpe:2.3:a:pydio:cells"
fund = "https://pydio.com/en/pricing"
[integration]
yunohost = ">= 11.1.14"
yunohost = ">= 11.1.21"
architectures = ["amd64", "armhf", "arm64"]
multi_instance = true
ldap = false
@ -35,8 +32,6 @@ ram.runtime = "50M"
type = "domain"
[install.init_main_permission]
# this is a generic question - ask strings are automatically handled by YunoHost's core
# This won't be saved as setting and will instead be used to initialize the SSOwat permission
type = "group"
default = "visitors"
@ -47,8 +42,6 @@ ram.runtime = "50M"
type = "password"
[resources]
# See the packaging documentation for the full set
# of explanation regarding the behavior and properties for each of those
[resources.sources]

View file

@ -60,9 +60,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
ynh_print_info --message="Backing up the MySQL database..."
### (However, things like MySQL dumps *do* take some time to run, though the
### copy of the generated dump to the archive still happens later)
ynh_mysql_dump_db --database="$db_name" > db.sql
#=================================================

View file

@ -25,12 +25,6 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
ynh_change_url_nginx_config
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ...
#=================================================
#=================================================
# GENERIC FINALISATION
#=================================================

View file

@ -60,27 +60,12 @@ yunohost service add "$app" --description="Pydio - A file sharing platform" --lo
#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
#ynh_script_progression --message="Updating a configuration file..." --weight=1
### Same as during install
###
### The file will automatically be backed-up if it's found to be manually modified (because
### ynh_add_config keeps track of the file's checksum)
#ynh_add_config --template="some_config_file" --destination="$install_dir/some_config_file"
ynh_add_config --template="some_config_file" --destination="$install_dir/some_config_file"
# FIXME: this should be handled by the core in the future
# You may need to use chmod 600 instead of 400,
# for example if the app is expected to be able to modify its own config
chmod 400 "$install_dir/some_config_file"
chown $app:$app "$install_dir/some_config_file"
### For more complex cases where you want to replace stuff using regexes,
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)
### When doing so, you also need to manually call ynh_store_file_checksum
###
### ynh_replace_string --match_string="match_string" --replace_string="replace_string" --target_file="$install_dir/some_config_file"
### ynh_store_file_checksum --file="$install_dir/some_config_file"
#chmod 400 "$install_dir/some_config_file"
#chown $app:$app "$install_dir/some_config_file"
#=================================================
# START SYSTEMD SERVICE