Forgot to add one file for Bug 234124

r=bryner@brianryner.com, sr=bryner@brianryner.com

Patch by Roland Mainz <roland.mainz@nrubsig.org>.
This commit is contained in:
pkw%us.ibm.com 2004-02-20 18:15:30 +00:00
Родитель b6d6299c06
Коммит 394ebcdd9c
1 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,28 @@
#!/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.