#!/bin/bash

USER=knast
PATH=shares
TV_DIR=tv
CLASSICS_DIR=classics
FILM_DIR=film

/usr/bin/chmod -v 0644 -R /home/$USER/$PATH/disk1/$TV_DIR/* > /home/$USER/logs/tv_chmod.log 
echo "CRON CHMOD TV RAN AT: " `/usr/bin/date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/tv_chmod.log

/usr/bin/chmod -v 0644 -R /home/$USER/$PATH/disk1/$film/* > /home/$USER/logs/film_chmod.log
echo "CRON CHMOD FILM RAN AT: " `/usr/bin/date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/film_chmod.log

/usr/bin/chmod -v 0644 -R /home/$USER/$PATH/disk1/$CLASSICS_DIR/* > /home/$USER/logs/classic_chmod.log
echo "CRON CHMOD CLASSIC RAN AT: " `/usr/bin/date '+%Y-%m-%d %H:%M:%S'` >> /home/$USER/logs/classic_chmod.log

