echo
echo Changement des permissions... 
echo

REP=$HOME/sources_EXEMAALT/EXEMAALT

# on rajoute $REP a la liste des fichiers trouves par find
# pour qu'il n'y ait pas d'erreur si find ne trouve rien
chmod 755 $REP `find $REP -type d -a -not -perm 755`
# on rajoute $REP/index.html a la liste des fichiers trouves par find
# pour qu'il n'y ait pas d'erreur si find ne trouve rien
chmod 644 $REP/index.html  `find $REP -type f -a -not -perm 644`

#find $HOME/public_html -type d -a -not -perm 755 -exec chmod 755 \{\} \;
#find $HOME/public_html -type f -a -not -perm 644 -exec chmod 644 \{\} \;

echo Changement des permissions termine.
echo

