wppurking / ocserv-docker

用于初始化 ocserv 的 Dockfile 脚本
608 stars 186 forks source link

Add '\n' for the last line #10

Closed krizex closed 8 years ago

krizex commented 8 years ago

There is no 'new-line' flag in the last line of file ocserv/ocpasswd. So when I add a new user, it will appear at the same line with user holly. Like this: qy@RAPH:~/ocserv-docker/ocserv$ sudo cat ocpasswd wyatt::$5$ExKuUh1w1v/67AQt$tg/mf33OOJ2bMvLtSdX55v0wF2BLfxgm7YPlVPAcCX0 holly::$5$HCRJ7HmiQZrc5Amp$iU2G4TDDaL1/TGZKaksGJeGp7A.Nffs0BiObZ6SFttBqy:*:$5$rqNn/fV1MevxT/Yl$ZV/eW4Q/Sng.s3oCcjREMAMAm4zXsHQg8VKql1fwmD2

Thereby, it will result in the user holly and the newly added user unusable.

This commit fix the issue.

wppurking commented 8 years ago

@krizex thanks~