Fix broken chromium extension script
This commit is contained in:
parent
1f5af604ee
commit
588396359a
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@ EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}";
|
|||
if [ ! "$UID" -eq 0 ]
|
||||
then
|
||||
sudo \
|
||||
BROWSER_BIN="${BROWSER_BIN}" \
|
||||
EXTENSION_NAME="${EXTENSION_NAME}" \
|
||||
UNPACKED_EXTENSION="${UNPACKED_EXTENSION}" \
|
||||
EXTENSION_DIR="${EXTENSION_DIR}" \
|
||||
|
@ -33,6 +34,7 @@ else
|
|||
sudo -u "$1" "${BROWSER_BIN}" --pack-extension="$UNPACKED_EXTENSION" --pack-extension-key="$keyFile";
|
||||
|
||||
# Install extension and preinstall it
|
||||
mkdir -p "$EXTENSION_DIR";
|
||||
cp "$extensionFile" "$destination";
|
||||
chmod -R a+rx "$EXTENSION_DIR";
|
||||
chmod -R u+w "$EXTENSION_DIR";
|
||||
|
|
Loading…
Reference in a new issue