소스 검색

Merge pull request #660 from JasonGhent/patch-1

Avoid opportunity for copy-paste trouble
Allen Riddell 7 년 전
부모
커밋
e016a74d90
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3
    5
      README.md

+ 3
- 5
README.md 파일 보기

@@ -117,12 +117,10 @@ All of the variables in `group_vars/sovereign` must be set for sovereign to func
117 117
 
118 118
 Setting `password_hash` for your mail users is a bit tricky. You can generate one using [doveadm-pw](http://wiki2.dovecot.org/Tools/Doveadm/Pw).
119 119
 
120
-    # doveadm pw -s SHA512-CRYPT
121
-    Enter new password: foo
122
-    Retype new password: foo
123
-    {SHA512-CRYPT}$6$drlIN9fx7Aj7/iLu$XvjeuQh5tlzNpNfs4NwxN7.HGRLglTKism0hxs2C1OvD02d3x8OBN9KQTueTr53nTJwVShtCYiW80SGXAjSyM0
120
+    # doveadm pw -p'YOUR_PASSWORD' -s SHA512-CRYPT | sed -e 's/{.*}//'
121
+    $6$drlIN9fx7Aj7/iLu$XvjeuQh5tlzNpNfs4NwxN7.HGRLglTKism0hxs2C1OvD02d3x8OBN9KQTueTr53nTJwVShtCYiW80SGXAjSyM0
124 122
 
125
-Remove `{SHA512-CRYPT}` and insert the rest as the `password_hash` value.
123
+`sed` is used here to truncate the hash type from the beginning of the `doveadm pw` output.
126 124
 
127 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`):
128 126
 

Loading…
취소
저장