Closed autra closed 4 years ago
Actually I realised that the script did fail if the user already exists. But then the remove script is executed to cleanup, which tries to userdel.
In this case, we want to cleanup, but avoid the userdel command if the reason we are cleaning up is because the user wasn't correctly chosen. Not sure how to achieve that tough.
Thanks for reporting this Fixed with https://github.com/YunoHost-Apps/borgserver_ynh/pull/22
Thanks for reporting this, it's fixed with https://github.com/YunoHost-Apps/borgserver_ynh/pull/24
Seems like the issue still occurs
How to reproduce:
Current result: User "toto" gets deleted along with the app.
Expected result: borg_server is removed but user "toto" is kept.
Description
If someone installs this app and choose an existing user as ssh user, it will attempt a userdel on remove (either by removing this app manually, or because the installation fails).
I propose to:
WDYT?