mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-24 15:00:31 +02:00
Update Dockerfile
This commit is contained in:
@@ -122,8 +122,13 @@ RUN set -e; \
|
|||||||
-o "/tmp/${name}.crx"; \
|
-o "/tmp/${name}.crx"; \
|
||||||
rm -rf "${extensions_dir:?}/${name}"; \
|
rm -rf "${extensions_dir:?}/${name}"; \
|
||||||
mkdir -p "${extensions_dir}/${name}"; \
|
mkdir -p "${extensions_dir}/${name}"; \
|
||||||
unzip -q "/tmp/${name}.crx" -d "${extensions_dir}/${name}"; \
|
rc=0; \
|
||||||
rm "/tmp/${name}.crx"; \
|
unzip -q "/tmp/${name}.crx" -d "${extensions_dir}/${name}" || rc=$$?; \
|
||||||
|
if [ "$$rc" -ne 0 ] && [ "$$rc" -ne 1 ]; then \
|
||||||
|
echo "ERROR: unzip failed for ${name} (rc=$$rc)"; \
|
||||||
|
exit "$$rc"; \
|
||||||
|
fi; \
|
||||||
|
rm -f "/tmp/${name}.crx"; \
|
||||||
done; \
|
done; \
|
||||||
chown -R chrome:chrome "${extensions_dir}"
|
chown -R chrome:chrome "${extensions_dir}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user