From 7f75aeb461fe1f24263495adae511da9bbfd451a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 22 Feb 2022 18:18:57 +0100 Subject: [PATCH] [fix] Use hooks directory --- {conf => hooks}/post_user_create | 0 {conf => hooks}/post_user_delete | 0 {conf => hooks}/post_user_update | 0 scripts/install | 3 --- 4 files changed, 3 deletions(-) rename {conf => hooks}/post_user_create (100%) rename {conf => hooks}/post_user_delete (100%) rename {conf => hooks}/post_user_update (100%) diff --git a/conf/post_user_create b/hooks/post_user_create similarity index 100% rename from conf/post_user_create rename to hooks/post_user_create diff --git a/conf/post_user_delete b/hooks/post_user_delete similarity index 100% rename from conf/post_user_delete rename to hooks/post_user_delete diff --git a/conf/post_user_update b/hooks/post_user_update similarity index 100% rename from conf/post_user_update rename to hooks/post_user_update diff --git a/scripts/install b/scripts/install index d741b54..eafdab8 100755 --- a/scripts/install +++ b/scripts/install @@ -62,9 +62,6 @@ setfacl -R -m g:all_users:rwx,d:g:all_users:rwx $datadir/share ynh_script_progression --message="Adding a configuration file..." --time --weight=1 ynh_add_config --template="smb.conf" --destination="/etc/samba/smb.conf" -ynh_add_config --template="post_user_create" --destination="/etc/yunohost/hooks.d/post_user_create/$app" -ynh_add_config --template="post_user_delete" --destination="/etc/yunohost/hooks.d/post_user_delete/$app" -ynh_add_config --template="post_user_update" --destination="/etc/yunohost/hooks.d/post_user_update/$app" #================================================ # INTEGRATE SERVICE IN YUNOHOST