[utils/chown_impressions.sh] La redirection &> ne marche pas en sh + chmod 770 c'est mieux que 660 quand c'est sur un dossier
Ignore-this: 8863028fc8e5fc8e1172cd9b0adcc571 darcs-hash:20121106174201-2c9c1-3cba4e58959200ccc4424d03dbab1433800bbc1f.gz
This commit is contained in:
parent
47f0e3f4cc
commit
3920ac216a
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@
|
|||
|
||||
# Pour que www-data puisse créer les fichiers à imprimer
|
||||
|
||||
getent passwd $1 &>/dev/null
|
||||
getent passwd $1 2>&1 >/dev/null
|
||||
exists=$?
|
||||
if [ $exists -eq 0 ]; then
|
||||
mkdir -p /home/impressions/$1
|
||||
chown -R $1:www-data /home/impressions/$1
|
||||
chmod -R 660 /home/impressions/$1
|
||||
chmod -R 770 /home/impressions/$1
|
||||
else
|
||||
echo "Le dossier /home/$1 n'existe pas." >&2
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue