diff --git a/hooks/post_user_create b/hooks/post_user_create index 45d2c3c..83dedf0 100644 --- a/hooks/post_user_create +++ b/hooks/post_user_create @@ -1,7 +1,7 @@ #!/bin/bash -app=dolibarr -src_path=/var/www/dolibarr -member=1 +app=__APP__ +src_path=__SRCPATH__ +member=__MEMBER__ # Sync users if sudo php $src_path/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then diff --git a/scripts/install b/scripts/install index 662936a..8ff4844 100644 --- a/scripts/install +++ b/scripts/install @@ -178,8 +178,6 @@ fi # Setup hooks fhook=../hooks/post_user_create -ynh_replace_string --match_string="__ADMIN__" --replace_string="$admin" --target_file="$fhook" - ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$fhook" ynh_replace_string --match_string="__MEMBER__" --replace_string="$member" --target_file="$fhook" ynh_replace_string --match_string="__SRCPATH__" --replace_string="$src_path" --target_file="$fhook"