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" id = "pydio"
name = "Pydio" name = "Pydio"
description.en = "A file sharing platform" description.en = "File sharing platform"
description.fr = "Une plateforme de partage de fichiers" description.fr = "Plateforme de partage de fichiers"
version = "4.2.1~ynh1" version = "4.2.1~ynh1"
maintainers = ["salamandar"] maintainers = ["salamandar"]
[upstream] [upstream]
# NB: Only the "license" key is mandatory. Remove entries for which there's no relevant data
license = "AGPL-3.0" license = "AGPL-3.0"
website = "https://pydio.com" website = "https://pydio.com"
# demo = "https://demo.example.com"
admindoc = "https://pydio.com/en/docs" admindoc = "https://pydio.com/en/docs"
# userdoc = "https://yunohost.org/apps"
code = "https://github.com/pydio/cells" code = "https://github.com/pydio/cells"
cpe = "cpe:2.3:a:pydio:cells" cpe = "cpe:2.3:a:pydio:cells"
fund = "https://pydio.com/en/pricing" fund = "https://pydio.com/en/pricing"
[integration] [integration]
yunohost = ">= 11.1.14" yunohost = ">= 11.1.21"
architectures = ["amd64", "armhf", "arm64"] architectures = ["amd64", "armhf", "arm64"]
multi_instance = true multi_instance = true
ldap = false ldap = false
@ -35,8 +32,6 @@ ram.runtime = "50M"
type = "domain" type = "domain"
[install.init_main_permission] [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" type = "group"
default = "visitors" default = "visitors"
@ -47,8 +42,6 @@ ram.runtime = "50M"
type = "password" type = "password"
[resources] [resources]
# See the packaging documentation for the full set
# of explanation regarding the behavior and properties for each of those
[resources.sources] [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..." 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 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 ynh_change_url_nginx_config
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ...
#=================================================
#================================================= #=================================================
# GENERIC FINALISATION # GENERIC FINALISATION
#================================================= #=================================================

View file

@ -60,27 +60,12 @@ yunohost service add "$app" --description="Pydio - A file sharing platform" --lo
#================================================= #=================================================
# UPDATE A CONFIG FILE # 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 #ynh_add_config --template="some_config_file" --destination="$install_dir/some_config_file"
###
### 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" #chmod 400 "$install_dir/some_config_file"
#chown $app:$app "$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"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE