зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b6d6299c06
Коммит
394ebcdd9c
|
@ -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.
|
Загрузка…
Ссылка в новой задаче