Skip to content

Commit

Permalink
update: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Oct 8, 2024
1 parent 15f9bfe commit f758d97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/library/htpasswd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ htpasswd_add_user(){
"

[ -e "${HTPASSWD_FILE}" ] || touch "${HTPASSWD_FILE}"
sed -i '/# '"${USER}"'/d' "${HTPASSWD_FILE}.txt"
echo "# ${USER} - ${PASS}" >> "${HTPASSWD_FILE}.txt"
htpasswd -bB -C 10 "${HTPASSWD_FILE}" "${USER}" "${PASS}"
}

Expand Down

0 comments on commit f758d97

Please sign in to comment.