From 4481f3935b9d7db0fec408125d4bfbbaef1ef439 Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Sun, 4 Jun 2023 11:40:07 +0200 Subject: [PATCH 1/3] new hook post_user_delete --- hooks/post_user_delete | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hooks/post_user_delete diff --git a/hooks/post_user_delete b/hooks/post_user_delete new file mode 100644 index 0000000..d23beb4 --- /dev/null +++ b/hooks/post_user_delete @@ -0,0 +1,16 @@ +#!/bin/bash + +source /usr/share/yunohost/helpers + +user="$1" +app="$(basename $0 | cut -d- -f 2-)" # Extract the app name from the script name, which is supposed to be something like "50-app_id" +final_path=$(ynh_app_setting_get --app=$app --key=final_path) +phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) + +# Define a function to execute commands with `occ` +exec_occ() { + (cd "$final_path" && ynh_exec_as "$app" \ + php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") +} + +exec_occ user:delete $user From 7cb57770bb8cd81f737bfab927adafcb72601a3c Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 10 Nov 2023 14:58:40 +0000 Subject: [PATCH 2/3] Auto-update README --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5ee58c0..e9d6643 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,7 @@ Nextcloud Hub is a fully open-source on-premises content collaboration platform. ### YunoHost-specific features -In addition to Nextcloud core features, the following are made available with -this package: +In addition to Nextcloud core features, the following are made available with this package: * Integrate with YunoHost users and SSO - i.e. logout button * Allow one user to be the administrator (set at the installation) From b51676a26cbeda9698e4805467ad10eb7bff890f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 10 Nov 2023 16:00:55 +0100 Subject: [PATCH 3/3] Update post_user_delete --- hooks/post_user_delete | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/post_user_delete b/hooks/post_user_delete index d23beb4..d824c12 100644 --- a/hooks/post_user_delete +++ b/hooks/post_user_delete @@ -4,12 +4,12 @@ source /usr/share/yunohost/helpers user="$1" app="$(basename $0 | cut -d- -f 2-)" # Extract the app name from the script name, which is supposed to be something like "50-app_id" -final_path=$(ynh_app_setting_get --app=$app --key=final_path) +install_dir=$(ynh_app_setting_get --app=$app --key=install_dir) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) # Define a function to execute commands with `occ` exec_occ() { - (cd "$final_path" && ynh_exec_as "$app" \ + (cd "$install_dir" && ynh_exec_as "$app" \ php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@") }