diff --git a/actions.json b/actions.json index 4190bcb..44e4135 100644 --- a/actions.json +++ b/actions.json @@ -14,7 +14,7 @@ "ask": { "en": "User account to be migrate from the old to the new behavior" }, - "example": "bob@ynh.local" + "example": "bob@domain.tld" } ] }] diff --git a/scripts/install b/scripts/install index bbbaec1..6e80122 100644 --- a/scripts/install +++ b/scripts/install @@ -172,7 +172,7 @@ sleep 5 su - $seafile_user -s /bin/bash -c "$final_path/seafile-server-$seafile_version/seafile.sh start" # We escape all char witch needed. ynh_replace_special_string --match_string __ADMIN_PASSWORD__ --replace_string "$admin_password" --target_file $final_path/first_launch.exp -admin_email=$(ynh_user_get_info $admin 'mail') +admin_email=$(ynh_user_get_info --username $admin --key 'mail') su - $seafile_user -s /bin/bash -c "$final_path/first_launch.exp $final_path/seafile-server-$seafile_version $admin_email" ynh_secure_remove --file="$final_path/first_launch.exp" diff --git a/sources/move_library.py b/sources/move_library.py index b2fa7ae..0ecbd72 100644 --- a/sources/move_library.py +++ b/sources/move_library.py @@ -27,3 +27,5 @@ source_repositories = seafile_api.get_owned_repo_list(source_user_email); for repo in source_repositories: seafile_api.set_repo_owner(repo.id, target_user_email) + +ccnet_api.remove_emailuser('DB', source_user_email)