upgrade gitea (nouvelle numérotation)
This commit is contained in:
1 parent
f6e6d8d8ac
commit
19053efea7
2 files changed
+11
-14
No files matched your search
@@ -6,33 +6,29 @@ log = logging.getLogger(__name__)
|
||||
|
||||
def run(message, encours):
|
||||
|
||||
script = "gestUser.sh"
|
||||
|
||||
email_kaz = message["email_kaz"]
|
||||
|
||||
commandes = []
|
||||
|
||||
if message.get("modifier_mdp", False):
|
||||
script = "/kaz/bin/gestUser.sh"
|
||||
commandes.append([script, "-r", email_kaz])
|
||||
|
||||
if message.get("modifier_email_secours", False):
|
||||
commandes.append([
|
||||
script, "-s", email_kaz,
|
||||
message["email_secours"]
|
||||
])
|
||||
script = "/kaz/bin/update-ldap-paheko.sh"
|
||||
commandes.append([ script, "-u", email_kaz, "-s",message["email_secours"] ])
|
||||
|
||||
if message.get("modifier_tel", False):
|
||||
commandes.append([
|
||||
script, "-t", email_kaz,
|
||||
message["telephone"]
|
||||
])
|
||||
script = "/kaz/bin/update-ldap-paheko.sh"
|
||||
commandes.append([ script, "-u", email_kaz, "-m",message["telephone"] ])
|
||||
|
||||
if message.get("modifier_quota", False):
|
||||
commandes.append([
|
||||
script, "-q", email_kaz,
|
||||
str(message["quota_disque"])
|
||||
])
|
||||
script = "/kaz/bin/update-ldap-paheko.sh"
|
||||
commandes.append([ script, "-u", email_kaz, "-q",message["quota_disque"] ])
|
||||
|
||||
if message.get("supprimer_membre", False):
|
||||
script = "/kaz/bin/gestUser.sh"
|
||||
commandes.append([script, "-d", email_kaz])
|
||||
|
||||
for command in commandes:
|
||||
|
||||
Reference in new issue
Block a user