This commit is contained in:
Serghey Rodin 2015-10-22 16:57:24 +03:00
parent 7a1975ce39
commit fdce35d610
3 changed files with 13 additions and 6 deletions

View file

@ -41,7 +41,7 @@ if [ -z "$(echo $rpath |egrep "^/tmp|^$homedir")" ]; then
fi
# Changing file permissions
sudo -u $user chmod $permisions "$src_file" >/dev/null 2>&1
sudo -u $user chmod $permissions "$src_file" >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Error: access permission on $src_file was not changed"
exit 3