nextcloud/server

occ config:system:set should return a different output when unchanged

Open

#24,300 创建于 2020年11月23日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)PHP (4,865 fork)batch import
1. to developenhancementfeature: occgood first issue

仓库指标

Star
 (34,953 star)
PR 合并指标
 (平均合并 20天) (30 天内合并 627 个 PR)

描述

Steps

  1. Run occ config:system:set mail_smtpmode --value mail_smtpmode
  2. Run it again

Expected result

An output with "Already set"

Actual result

Exact same output.

Version

Nextcloud 20.0.2

Context

When using tools like Ansible, one might want to know whether a value was changed or not to be able to set the changed_when clause there based stdout result.

Also needs to be applied to the other occ config:*:set commands.

贡献者指南