#!/bin/sh user=www-data grep '^$user' /etc/passwd | wc -l > /dev/null if [ $? -ne 0 ] then chown -R www-data:www-data storage bootstrap/cache modules.json fi