1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dolibarr_ynh.git synced 2024-09-03 18:35:53 +02:00

Fix for the hook

This commit is contained in:
mastereur 2019-06-27 11:48:47 +02:00
parent 7b42af1637
commit adbe51a64e
2 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
app=dolibarr app=__APP__
src_path=/var/www/dolibarr src_path=__SRCPATH__
member=1 member=__MEMBER__
# Sync users # Sync users
if sudo php $src_path/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then if sudo php $src_path/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then

View file

@ -178,8 +178,6 @@ fi
# Setup hooks # Setup hooks
fhook=../hooks/post_user_create 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="__APP__" --replace_string="$app" --target_file="$fhook"
ynh_replace_string --match_string="__MEMBER__" --replace_string="$member" --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" ynh_replace_string --match_string="__SRCPATH__" --replace_string="$src_path" --target_file="$fhook"