diff options
author | Björgvin Ragnarsson <nifgraup@gmail.com> | 2013-08-20 00:33:37 +0000 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2013-08-20 15:09:18 +0000 |
commit | d2ed00f711d71cd2efe87e19dadfb0b413a7b5fe (patch) | |
tree | 44c7861ebb194b7c42cf135476cac36e9a6b6af0 /desktop | |
parent | c53d6326aaa2bb2721818671034f4df68923b11c (diff) |
unopkg: use default umask when installing shared extensions
This makes sure shared extensions are readable by users when root's umask has been
set to a value such as 0027.
Change-Id: If495afae8eaf3a640c99ecb7598b79b59363c12c
Reviewed-on: https://gerrit.libreoffice.org/5521
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/scripts/unopkg.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/scripts/unopkg.sh b/desktop/scripts/unopkg.sh index d0bb4301cb24..295f874d9d39 100644 --- a/desktop/scripts/unopkg.sh +++ b/desktop/scripts/unopkg.sh @@ -61,9 +61,13 @@ do -env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";; -v) VERBOSE=true;; --verbose) VERBOSE=true;; + --shared) SHARED=true;; esac done +#make sure shared extensions will be readable by all users +[ $SHARED = true ] && umask 0022 + # extend the ld_library_path for java: javaldx checks the sofficerc for us if [ -x "$sd_prog/../ure-link/bin/javaldx" ] ; then my_path=`"$sd_prog/../ure-link/bin/javaldx" $BOOTSTRAPVARS \ |