diff --git a/entrypoint.sh b/entrypoint.sh index 10e3bbe..372f796 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -29,7 +29,8 @@ genPassowrd () { sanitizeFile () { tmp="$(mktemp)" sed -e "s/\r//g" "$1" > "$tmp" - mv "$tmp" "$1" + cat "$tmp" > "$1" + rm "$tmp" } if [ ! -e "$PASSWD_LIST" ] ; then