Skip to content

Commit

Permalink
Merge pull request #1201 from thomasjacquin/don't-assume-pi
Browse files Browse the repository at this point in the history
install.sh: don't assume login is called "pi"
  • Loading branch information
EricClaeys authored May 13, 2022
2 parents d604ebf + 1e9011e commit c8a8082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ if [ ! -d startrails/thumbnails -o ! -d keograms/thumbnails -o ! -d videos/thumb
echo

echo -e "${GREEN}* Fixing ownership and permissions${NC}"
chown -R pi:www-data .
U=$(id -n -u)
chown -R "${U}:www-data" .
find ./ -type f -exec chmod 644 {} \;
find ./ -type d -exec chmod 775 {} \;
echo
Expand Down

0 comments on commit c8a8082

Please sign in to comment.