1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/trilium_ynh.git synced 2024-10-01 13:34:49 +02:00
This commit is contained in:
Éric Gaspar 2023-04-02 22:12:31 +02:00
parent b2d9849698
commit 3f88170478
4 changed files with 3 additions and 13 deletions

View file

@ -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]

View file

@ -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

View file

@ -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

View file

@ -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