legacy: auto-patch yunohost user create syntax in app scripts to use --fullname instead

This commit is contained in:
Alexandre Aubin 2022-12-02 23:30:13 +01:00
parent 0b4852a327
commit d254fb1b05

View file

@ -253,6 +253,11 @@ def _patch_legacy_helpers(app_folder):
"yunohost app checkport": {"important": True},
"yunohost tools port-available": {"important": True},
"yunohost app checkurl": {"important": True},
"yunohost user create": {
"pattern": r"yunohost user create \S+ (-f|--firstname) (\S+) (-l|--lastname) \S+ (.*)",
"replace": r"yunohost user create --fullname \2 \4",
"important": False,
},
# Remove
# Automatic diagnosis data from YunoHost
# __PRE_TAG1__$(yunohost tools diagnosis | ...)__PRE_TAG2__"