diff --git a/manifest.toml b/manifest.toml index e470883..ea5cacb 100644 --- a/manifest.toml +++ b/manifest.toml @@ -17,7 +17,7 @@ cpe = "cpe:2.3:a:trilium_project:trilium" fund = "https://github.com/sponsors/zadam" [integration] -yunohost = ">= 11.1.15" +yunohost = ">= 11.1.16" architectures = [ "amd64", "arm64", "armhf" ] multi_instance = true ldap = false @@ -56,6 +56,7 @@ ram.runtime = "110M" url = "https://github.com/zadam/trilium/archive/refs/tags/v0.59.2.tar.gz" sha256 = "29dfd218cfc9f1263e2c38fa098ce7363cbf9bc802ff9776a675159dc8b6f368" rename = "v0.59.2.tar.gz" + autoupdate.strategy = "latest_github_tag" [resources.system_user] diff --git a/scripts/install b/scripts/install index dc560e8..ed939e8 100644 --- a/scripts/install +++ b/scripts/install @@ -28,9 +28,7 @@ ynh_setup_source --dest_dir="$install_dir" grep -v electron "$install_dir/package.json" > "$install_dir/server-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" chown -R $app:www-data "$install_dir" @@ -68,8 +66,6 @@ yunohost service add $app --description="Trilium Notes app" --log="systemd" #================================================= 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" ln -sf $install_dir/config.ini $data_dir/config.ini diff --git a/scripts/remove b/scripts/remove index 03deb14..1058550 100644 --- a/scripts/remove +++ b/scripts/remove @@ -16,8 +16,6 @@ source /usr/share/yunohost/helpers #================================================= 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`) if ynh_exec_warn_less yunohost service status $app >/dev/null then diff --git a/scripts/upgrade b/scripts/upgrade index fdbfef7..0404c45 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,9 +35,6 @@ then mv "$install_dir/server-package.json" "$install_dir/package.json" 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 -R o-rwx "$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 -# This should be a literal copypasta of what happened in the install's "System configuration" section - ynh_add_nginx_config ynh_add_systemd_config