gecko-dev/xpfe/bootstrap/init.d/S80calendar_fix_permissions_bug_230617
pkw%us.ibm.com 4562bf77b4 Forgot to add one file for Bug 234124
r=bryner@brianryner.com, sr=bryner@brianryner.com

Patch by Roland Mainz <roland.mainz@nrubsig.org>.
2004-02-20 18:15:30 +00:00

29 lines
902 B
Bash

#!/bin/sh
# S80calendar_fix_permissions_bug_230617
#
# This script will correct the permission bits for the Mozilla
# Calendar (see bug 230617 - "Jan 9 Build will not create new
# Calendar, Event, or Task for *first time* installation") for details.
# Prechecks
if [ -z "${MOZ_PIS_USER_DIR}" ] ; then
echo "${0}: Internal error: MOZ_PIS_USER_DIR not set."
exit 1
fi
if [ ${MOZ_PIS_API} -lt 2 ] ; then
echo "${0}: Internal error: MOZ_PIS_API is ${MOZ_PIS_API}, should be >= 2."
exit 1
fi
# We run in a seperate process so we are allows to use single-letter
# shell vars (see mozilla/xpfe/bootstrap/init.d/README)
for i in "${HOME}/${MOZ_PIS_USER_DIR}"/*/*.slt/Calendar ; do
if [ -d "${i}" ] ; then
if [ ! -r "${i}" -o ! -w "${i}" -o ! -x "${i}" ] ; then
echo "${0}: Fixing permissions for ${i} ..."
chmod u+rwx "${i}"
fi
fi
done
# EOF.