#!/bin/sh -e cd %ROOT for file in var/log/{%name,jarfile}; do if ! [ -f "$file" ]; then touch "$file" chgrp %name "$file" chmod 660 "$file" fi done