pacman-db-upgrade: set umask 022

This prevents the database from becoming inaccessible for non-root
users when the script was executed with a umask of 027.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Peter Wu 2014-12-20 11:58:09 +01:00 committed by Allan McRae
parent 325e20dea1
commit a1c50a08c9
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Avoid creating world-unreadable files
umask 022
# gettext initialization
export TEXTDOMAIN='pacman-scripts'
export TEXTDOMAINDIR='@localedir@'