mirror of
https://github.com/YunoHost-Apps/trilium_ynh.git
synced 2024-10-01 13:34:49 +02:00
commit
38c9fc2128
9 changed files with 11 additions and 28 deletions
|
@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
Trilium Notes is an Evernote-like hierarchical note taking application with many advanced features, focused on building a large personal knowledge base.
|
Trilium Notes is an Evernote-like hierarchical note taking application with many advanced features, focused on building a large personal knowledge base.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.59.2~ynh1
|
**Shipped version:** 0.60.4~ynh1
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
||||||
Trilium Notes est une application de prise de note hiérarchique semblable a Evernote, avec maintes fonctions avancées, centrée sur la construction d'une large base de connaissances personnelle.
|
Trilium Notes est une application de prise de note hiérarchique semblable a Evernote, avec maintes fonctions avancées, centrée sur la construction d'une large base de connaissances personnelle.
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 0.59.2~ynh1
|
**Version incluse :** 0.60.4~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Trilium Notes"
|
||||||
description.en = "Hierarchical note taking application with focus on building large personal knowledge base"
|
description.en = "Hierarchical note taking application with focus on building large personal knowledge base"
|
||||||
description.fr = "Application de prise de note hiérarchique centrée sur la construction d'une large base de connaissances personnelle"
|
description.fr = "Application de prise de note hiérarchique centrée sur la construction d'une large base de connaissances personnelle"
|
||||||
|
|
||||||
version = "0.59.2~ynh1"
|
version = "0.60.4~ynh1"
|
||||||
|
|
||||||
maintainers = ["Jules Bertholet"]
|
maintainers = ["Jules Bertholet"]
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ cpe = "cpe:2.3:a:trilium_project:trilium"
|
||||||
fund = "https://github.com/sponsors/zadam"
|
fund = "https://github.com/sponsors/zadam"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.15"
|
yunohost = ">= 11.2"
|
||||||
architectures = [ "amd64", "arm64", "armhf" ]
|
architectures = [ "amd64", "arm64", "armhf" ]
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
|
@ -53,9 +53,10 @@ ram.runtime = "110M"
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://github.com/zadam/trilium/archive/refs/tags/v0.59.2.tar.gz"
|
url = "https://github.com/zadam/trilium/archive/refs/tags/v0.60.4.tar.gz"
|
||||||
sha256 = "29dfd218cfc9f1263e2c38fa098ce7363cbf9bc802ff9776a675159dc8b6f368"
|
sha256 = "3a7a03d6c345f5a4cd765c0fdd6a927227735c5153449cb863e5e0e40108f972"
|
||||||
rename = "v0.59.2.tar.gz"
|
rename = "v0.60.4.tar.gz"
|
||||||
|
autoupdate.strategy = "latest_github_tag"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
nodejs_version=16
|
nodejs_version=18
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -28,10 +28,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
grep -v electron "$install_dir/package.json" > "$install_dir/server-package.json"
|
grep -v electron "$install_dir/package.json" > "$install_dir/server-package.json"
|
||||||
mv "$install_dir/server-package.json" "$install_dir/package.json"
|
mv "$install_dir/server-package.json" "$install_dir/package.json"
|
||||||
# $install_dir will automatically be initialized with some decent
|
|
||||||
# permission by default ... however, you may need to recursively reapply
|
|
||||||
# ownership to all files such as after the ynh_setup_source step
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
@ -68,8 +65,6 @@ yunohost service add $app --description="Trilium Notes app" --log="systemd"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
### You can add specific configuration files.
|
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.ini" --destination="$install_dir/config.ini"
|
ynh_add_config --template="../conf/config.ini" --destination="$install_dir/config.ini"
|
||||||
ln -sf $install_dir/config.ini $data_dir/config.ini
|
ln -sf $install_dir/config.ini $data_dir/config.ini
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,6 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing system configurations related to $app..."
|
ynh_script_progression --message="Removing system configurations related to $app..."
|
||||||
|
|
||||||
# This should be a symetric version of what happens in the install script
|
|
||||||
|
|
||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||||
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
if ynh_exec_warn_less yunohost service status $app >/dev/null
|
||||||
then
|
then
|
||||||
|
|
|
@ -17,9 +17,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$install_dir"
|
ynh_restore_file --origin_path="$install_dir"
|
||||||
|
|
||||||
# $install_dir will automatically be initialized with some decent
|
|
||||||
# permission by default ... however, you may need to recursively reapply
|
|
||||||
# ownership to all files such as after the ynh_setup_source step
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -29,7 +26,6 @@ ynh_script_progression --message="Restoring the data directory..." --weight=50
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
ynh_restore_file --origin_path="$data_dir" --not_mandatory
|
||||||
|
|
||||||
# (Same as for install dir)
|
|
||||||
chown -R $app:www-data "$data_dir"
|
chown -R $app:www-data "$data_dir"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -44,8 +40,6 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=10
|
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=10
|
||||||
|
|
||||||
# This should be a symetric version of what happens in the install script
|
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
|
|
|
@ -35,9 +35,6 @@ then
|
||||||
mv "$install_dir/server-package.json" "$install_dir/package.json"
|
mv "$install_dir/server-package.json" "$install_dir/package.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# $install_dir will automatically be initialized with some decent
|
|
||||||
# permission by default ... however, you may need to recursively reapply
|
|
||||||
# ownership to all files such as after the ynh_setup_source step
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
@ -65,8 +62,6 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||||
|
|
||||||
# This should be a literal copypasta of what happened in the install's "System configuration" section
|
|
||||||
|
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
|
@ -6,4 +6,4 @@ test_format = 1.0
|
||||||
# Commits to test upgrade from
|
# Commits to test upgrade from
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
|
|
||||||
test_upgrade_from.85a53b5.name = "Merge pull request #36 from YunoHost-Apps/testing"
|
#test_upgrade_from.85a53b5.name = "Merge pull request #36 from YunoHost-Apps/testing"
|
||||||
|
|
Loading…
Add table
Reference in a new issue