~ecryptfs/ecryptfs/trunk

« back to all changes in this revision

Viewing changes to src/utils/ecryptfs-setup-private

  • Committer: Dustin Kirkland
  • Date: 2011-03-02 11:49:02 UTC
  • Revision ID: kirkland@ubuntu.com-20110302114902-971e48k8lnit3v76
src/utils/ecryptfs-setup-private: update the Private.* selinux
contexts

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
temp=`mktemp`
400
400
echo "$sig" > "$temp" || error "$(gettext 'Could not create signature file')" "[$HOME/.ecryptfs/$PRIVATE_DIR.sig]"
401
401
mv "$temp" "$HOME/.ecryptfs/$PRIVATE_DIR.sig"
 
402
which restorecon 2>/dev/null && restorecon "$HOME/.ecryptfs/$PRIVATE_DIR.sig" > /dev/null 2>&1
402
403
temp=`mktemp`
403
404
echo "$MOUNTPOINT" > "$temp" || error "$(gettext 'Could not create mountpoint file')" "[$HOME/.ecryptfs/$PRIVATE_DIR.mnt]"
404
405
mv "$temp" "$HOME/.ecryptfs/$PRIVATE_DIR.mnt"
 
406
which restorecon 2>/dev/null && restorecon "$HOME/.ecryptfs/$PRIVATE_DIR.mnt" > /dev/null 2>&1
405
407
 
406
408
echo
407
409
echo "$(gettext 'Done configuring.')"