mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Merge branch 'master' of https://github.com/alexbelgium/hassio-addons
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
|
||||
## 4.8.1 (29-10-2022)
|
||||
- Update to latest version from linuxserver/docker-code-server
|
||||
|
||||
## 4.8.0 (27-10-2022)
|
||||
- Update to latest version from linuxserver/docker-code-server
|
||||
|
||||
## 4.7.1 (01-10-2022)
|
||||
- Update to latest version from linuxserver/docker-code-server
|
||||
|
||||
|
||||
@@ -30,22 +30,22 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
|
||||
# Global LSIO modifications
|
||||
ARG CONFIGLOCATION="/data"
|
||||
# hadolint ignore=SC2015, SC2013
|
||||
# hadolint ignore=SC2015, SC2013, SC2086
|
||||
RUN \
|
||||
# Avoid custom-init.d duplications
|
||||
for file in $(grep -sril 'Potential tampering with custom' /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do rm -f "$file"; done \
|
||||
for file in $(grep -sril 'Potential tampering with custom' /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do rm -f $file; done \
|
||||
\
|
||||
# Create new config folder if needed
|
||||
&& for file in $(grep -srl "PUID" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do sed -i "1a mkdir -p $CONFIGLOCATION" "$file"; done \
|
||||
&& for file in $(grep -srl "PUID" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do sed -i "1a mkdir -p $CONFIGLOCATION" $file; done \
|
||||
\
|
||||
# Allow UID and GID setting
|
||||
&& for file in $(grep -srl "PUID" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do sed -i 's/bash/bashio/g' "$file" && sed -i '1a PUID="$(if bashio::config.has_value "PUID"; then bashio::config "PUID"; else echo "0"; fi)"' "$file" && sed -i '1a PGID="$(if bashio::config.has_value "PGID"; then bashio::config "PGID"; else echo "0"; fi)"' "$file"; done \
|
||||
&& for file in $(grep -srl "PUID" /etc/cont-init.d /etc/s6-overlay/s6-rc.d); do sed -i 's/bash/bashio/g' $file && sed -i '1a PUID="$(if bashio::config.has_value "PUID"; then bashio::config "PUID"; else echo "0"; fi)"' $file && sed -i '1a PGID="$(if bashio::config.has_value "PGID"; then bashio::config "PGID"; else echo "0"; fi)"' $file; done \
|
||||
\
|
||||
# Correct config location
|
||||
&& for file in $(grep -Esril "/config[ '\"/]|/config\$" /etc/logrotate.d /defaults /etc/cont-init.d /etc/services.d /etc/s6-overlay/s6-rc.d); do sed -Ei "s=(/config)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" "$file"; done \
|
||||
&& for file in $(grep -Esril "/config[ '\"/]|/config\$" /etc /defaults); do sed -Ei "s=(/config)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done \
|
||||
\
|
||||
# Avoid chmod /config
|
||||
&& for files in /etc/services.d/*/* /etc/cont-init.d/* /etc/s6-overlay/s6-rc.d/*/*;do if [ -f $files ] && [[ ! -z $(awk '/chown.*abc:abc.*\\/,/.*\/config( |$)/{print FILENAME}' "$files") ]] ; then sed -i "s|/config$|/data|g" "$files"; fi ;done
|
||||
&& for file in /etc/services.d/*/* /etc/cont-init.d/* /etc/s6-overlay/s6-rc.d/*/*;do if [ -f $files ] && [[ ! -z $(awk '/chown.*abc:abc.*\\/,/.*\/config( |$)/{print FILENAME}' $file) ]] ; then sed -i "s|/config$|/data|g" $file; fi ;done
|
||||
|
||||
##################
|
||||
# 3 Install apps #
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# Home assistant add-on: code-server (not recommended : use https://github.com/hassio-addons/addon-vscode)
|
||||
# Home assistant add-on: code-server
|
||||
|
||||
# ⚠️ It is recommended to use the official addon (https://github.com/hassio-addons/addon-vscode) instead of this fork. The only benefit of this fork is automated releases, now implemented in the offical one. ⚠️
|
||||
|
||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
|
||||
@@ -14,7 +16,6 @@
|
||||
|
||||
_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_
|
||||
|
||||
|
||||
[](https://github.com/alexbelgium/hassio-addons/stargazers)
|
||||
|
||||
## About
|
||||
|
||||
@@ -74,6 +74,6 @@
|
||||
},
|
||||
"slug": "code-server",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/coder-server",
|
||||
"version": "4.7.1",
|
||||
"version": "4.8.1",
|
||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:8443]"
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"last_update": "01-10-2022",
|
||||
"last_update": "29-10-2022",
|
||||
"repository": "alexbelgium/hassio-addons",
|
||||
"slug": "code-server",
|
||||
"source": "github",
|
||||
"upstream_repo": "linuxserver/docker-code-server",
|
||||
"upstream_version": "4.7.1"
|
||||
"upstream_version": "4.8.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user