mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Remove last member option in files #88
This commit is contained in:
parent
6c09ca5f0c
commit
fd6522218a
3 changed files with 12 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
app=__APP__
|
app=__APP__
|
||||||
src_path=__FINALPATH__
|
src_path=__FINALPATH__
|
||||||
member=__MEMBER__
|
# 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
|
||||||
|
@ -11,11 +11,11 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If YNH users should also be members, sync members
|
# If YNH users should also be members, sync members
|
||||||
if [ $member -eq 1 ];
|
# if [ $member -eq 1 ];
|
||||||
then
|
# then
|
||||||
if sudo php $src_path/scripts/members/sync_members_ldap2dolibarr.php commitiferror 1 --server=localhost -y; then
|
# if sudo php $src_path/scripts/members/sync_members_ldap2dolibarr.php commitiferror 1 --server=localhost -y; then
|
||||||
echo ldap member update ok
|
# echo ldap member update ok
|
||||||
else
|
# else
|
||||||
echo ldap member update ended with error
|
# echo ldap member update ended with error
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
|
|
@ -23,7 +23,7 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
member=0
|
#member=0
|
||||||
#is_public=0
|
#is_public=0
|
||||||
phpversion=$YNH_PHP_VERSION
|
phpversion=$YNH_PHP_VERSION
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
||||||
#ynh_app_setting_set --app=$app --key=is_public --value=$is_public
|
#ynh_app_setting_set --app=$app --key=is_public --value=$is_public
|
||||||
ynh_app_setting_set --app=$app --key=member --value=$member
|
#ynh_app_setting_set --app=$app --key=member --value=$member
|
||||||
ynh_app_setting_set --app=$app --key=version --value=$(ynh_app_upstream_version "../manifest.json")
|
ynh_app_setting_set --app=$app --key=version --value=$(ynh_app_upstream_version "../manifest.json")
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -232,7 +232,7 @@ ynh_replace_string --match_string="dolibarr_main_authentication='dolibarr'" --re
|
||||||
#=================================================
|
#=================================================
|
||||||
fhook=../hooks/post_user_create
|
fhook=../hooks/post_user_create
|
||||||
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="__FINALPATH__" --replace_string="$final_path" --target_file="$fhook"
|
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$fhook"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -19,7 +19,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||||
member=$(ynh_app_setting_get --app=$app --key=member)
|
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
language=$(ynh_app_setting_get --app=$app --key=language)
|
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
|
|
Loading…
Reference in a new issue