Give the new file the same ownership as the old file
(instead of having it always owned just by root)
This commit is contained in:
parent
201db16c93
commit
3568798dd4
|
@ -45,6 +45,8 @@ if [ -n "$2" ]; then
|
|||
echo "ERROR: Could not copy file..."
|
||||
exit -5
|
||||
fi
|
||||
old_owner=$(stat -c %u:%g "$1")
|
||||
chown $old_owner "$2"
|
||||
img="$2"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue