Skip to content

Commit

Permalink
Devel (#62)
Browse files Browse the repository at this point in the history
* Update bootstrap.sh

* Fix python for #61

* Prep for release
  • Loading branch information
lbussy authored Jan 9, 2022
1 parent c64bc41 commit 6c39d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# license and credits.

# Set branch
BRANCH=master
BRANCH=main

############
### Global Declarations
Expand Down Expand Up @@ -331,7 +331,7 @@ checkpass() {
if [ "$user_exists" -eq 0 ]; then
salt=$(getent shadow "pi" | cut -d$ -f3)
extpass=$(getent shadow "pi" | cut -d: -f2)
match=$(python -c 'import crypt; print crypt.crypt("'"raspberry"'", "$6$'${salt}'")')
match=$(python3 -c 'import crypt; print(crypt.crypt("'"raspberry"'", "$6$'${salt}'"))')
[ "${match}" == "${extpass}" ] && badpwd=true || badpwd=false
if [ "$badpwd" = true ]; then
echo -e "\nDefault password found for the 'pi' account. This should be changed."
Expand Down

0 comments on commit 6c39d87

Please sign in to comment.