瀏覽代碼

Clarify reason for `sed` in update

Jason Ghent 7 年之前
父節點
當前提交
e73d33c0c6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      README.md

+ 2
- 0
README.md 查看文件

@@ -120,6 +120,8 @@ Setting `password_hash` for your mail users is a bit tricky. You can generate on
120 120
     # doveadm pw -p'YOUR_PASSWORD' -s SHA512-CRYPT | sed -e 's/{.*}//'
121 121
     $6$drlIN9fx7Aj7/iLu$XvjeuQh5tlzNpNfs4NwxN7.HGRLglTKism0hxs2C1OvD02d3x8OBN9KQTueTr53nTJwVShtCYiW80SGXAjSyM0
122 122
 
123
+`sed` is used here to truncate the hash type from the beginning of the `doveadm pw` output.
124
+
123 125
 Alternatively, if you don’t already have `doveadm` installed, Python 3.3 or higher on Linux will generate the appropriate string for you (assuming your password is `password`):
124 126
 
125 127
     python3 -c 'import crypt; print(crypt.crypt("password", salt=crypt.METHOD_SHA512))'

Loading…
取消
儲存