mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
legacy: auto-patch yunohost user create syntax in app scripts to use --fullname instead
This commit is contained in:
parent
0b4852a327
commit
d254fb1b05
1 changed files with 5 additions and 0 deletions
|
@ -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__"
|
||||
|
|
Loading…
Add table
Reference in a new issue