Skip to content

Commit 43ef055

Browse files
author
ryan.kuba
committed
use different directory based on distro
1 parent b98fdef commit 43ef055

File tree

1 file changed

+5
-1
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install

1 file changed

+5
-1
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install/run

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,11 @@ if which firefox && [ ! -f /langlock ]; then
746746
FIREFOX_VERSION=$(curl -sI https://download.mozilla.org/?product=firefox-latest | awk -F '(releases/|/win32)' '/Location/ {print $2}')
747747
RELEASE_URL="https://releases.mozilla.org/pub/firefox/releases/${FIREFOX_VERSION}/win64/xpi/"
748748
LANGS=$(curl -Ls ${RELEASE_URL} | awk -F '(xpi">|</a>)' '/href.*xpi/ {print $2}' | tr '\n' ' ')
749-
EXTENSION_DIR=/usr/lib/firefox-addons/distribution/extensions/
749+
if [[ "${LSIO_BASE}" == "alpine" ]]; then
750+
EXTENSION_DIR=/usr/lib/firefox/distribution/extensions/
751+
else
752+
EXTENSION_DIR=/usr/lib/firefox-addons/distribution/extensions/
753+
fi
750754
mkdir -p ${EXTENSION_DIR}
751755
for LANG in ${LANGS}; do
752756
LANGCODE=$(echo ${LANG} | sed 's/\.xpi//g')

0 commit comments

Comments
 (0)