mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
convert LF
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
# Home assistant add-on: addons updater
|
# Home assistant add-on: addons updater
|
||||||
|
|
||||||
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield]
|
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield]
|
||||||
|
|
||||||
## About
|
## About
|
||||||
@@ -34,7 +35,6 @@ gituser: your github email
|
|||||||
gitpass: add your github password here, or a specific key if you have two factor identification enabled
|
gitpass: add your github password here, or a specific key if you have two factor identification enabled
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
[repository]: https://github.com/alexbelgium/hassio-addons
|
[repository]: https://github.com/alexbelgium/hassio-addons
|
||||||
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
|
||||||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
|
||||||
|
|||||||
@@ -4,28 +4,38 @@
|
|||||||
"slug": "updater",
|
"slug": "updater",
|
||||||
"description": "Automatic addons update by aligning version tag with upstream releases",
|
"description": "Automatic addons update by aligning version tag with upstream releases",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"arch": [
|
"arch": ["aarch64", "amd64", "armv7", "armhf"],
|
||||||
"aarch64",
|
"ports": {},
|
||||||
"amd64",
|
"ports_description": {},
|
||||||
"armv7",
|
|
||||||
"armhf"
|
|
||||||
],
|
|
||||||
"ports": {
|
|
||||||
},
|
|
||||||
"ports_description": {
|
|
||||||
},
|
|
||||||
"startup": "once",
|
"startup": "once",
|
||||||
"boot": "manual",
|
"boot": "manual",
|
||||||
"environment": { "GIT_DISCOVERY_ACROSS_FILESYSTEM": "1" },
|
"environment": { "GIT_DISCOVERY_ACROSS_FILESYSTEM": "1" },
|
||||||
"options": {
|
"options": {
|
||||||
"addon": [{ "slug": "addon slug", "beta": false, "fulltag": false, "repository": "https://github.com/user/repo", "upstream": "github_user/repo_name" }],
|
"addon": [
|
||||||
|
{
|
||||||
|
"slug": "addon slug",
|
||||||
|
"beta": false,
|
||||||
|
"fulltag": false,
|
||||||
|
"repository": "https://github.com/user/repo",
|
||||||
|
"upstream": "github_user/repo_name"
|
||||||
|
}
|
||||||
|
],
|
||||||
"gituser": "gituser",
|
"gituser": "gituser",
|
||||||
"gitpass": "gitpassword",
|
"gitpass": "gitpassword",
|
||||||
"gitmail": "youremail@gmail.com",
|
"gitmail": "youremail@gmail.com",
|
||||||
"verbose": true
|
"verbose": true
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"addon": [{ "slug": "str", "beta": "bool", "fulltag": "bool", "having_asset": "bool?", "repository": "str", "upstream": "str"}],
|
"addon": [
|
||||||
|
{
|
||||||
|
"slug": "str",
|
||||||
|
"beta": "bool",
|
||||||
|
"fulltag": "bool",
|
||||||
|
"having_asset": "bool?",
|
||||||
|
"repository": "str",
|
||||||
|
"upstream": "str"
|
||||||
|
}
|
||||||
|
],
|
||||||
"gituser": "str",
|
"gituser": "str",
|
||||||
"gitpass": "str",
|
"gitpass": "str",
|
||||||
"gitmail": "str",
|
"gitmail": "str",
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
else
|
else
|
||||||
LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
cd "/data/$BASENAME"
|
cd "/data/$BASENAME"
|
||||||
git pull --rebase &>/dev/null || git reset --hard &>/dev/null; git pull --rebase &>/dev/null
|
git pull --rebase &>/dev/null || git reset --hard &>/dev/null
|
||||||
|
git pull --rebase &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Define the folder addon
|
#Define the folder addon
|
||||||
@@ -140,8 +141,8 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
[ -f "/data/${BASENAME}/${SLUG}/build.json" ] && sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/build.json || true #Allow absence of build.json
|
[ -f "/data/${BASENAME}/${SLUG}/build.json" ] && sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/build.json || true #Allow absence of build.json
|
||||||
|
|
||||||
# Remove " and modify version
|
# Remove " and modify version
|
||||||
LASTVERSION=${LASTVERSION//\"}
|
LASTVERSION=${LASTVERSION//\"/}
|
||||||
CURRENT=${CURRENT//\"}
|
CURRENT=${CURRENT//\"/}
|
||||||
jq --arg variable $LASTVERSION '.version = $variable' /data/${BASENAME}/${SLUG}/config.json | sponge /data/${BASENAME}/${SLUG}/config.json # Replace version tag
|
jq --arg variable $LASTVERSION '.version = $variable' /data/${BASENAME}/${SLUG}/config.json | sponge /data/${BASENAME}/${SLUG}/config.json # Replace version tag
|
||||||
|
|
||||||
#Update changelog
|
#Update changelog
|
||||||
@@ -169,4 +170,3 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
done
|
done
|
||||||
|
|
||||||
bashio::log.info "Addons update completed"
|
bashio::log.info "Addons update completed"
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,36 @@
|
|||||||
|
|
||||||
## 1.0.0 (13-10-2021)
|
## 1.0.0 (13-10-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|
||||||
## 0.9.9 (11-09-2021)
|
## 0.9.9 (11-09-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|
||||||
## 0.9.8 (02-09-2021)
|
## 0.9.8 (02-09-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|
||||||
## 0.9.7 (14-08-2021)
|
## 0.9.7 (14-08-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|
||||||
## 0.9.6 (07-08-2021)
|
## 0.9.6 (07-08-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|
||||||
## 2.6.2 (07-08-2021)
|
## 2.6.2 (07-08-2021)
|
||||||
|
|
||||||
- Update to latest version from alexbelgium/portainer
|
- Update to latest version from alexbelgium/portainer
|
||||||
|
|
||||||
## 0.9.6 (21-07-2021)
|
## 0.9.6 (21-07-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
- Enable smb mounts
|
- Enable smb mounts
|
||||||
|
|
||||||
## 0.9.5 (09-05-2021)
|
## 0.9.5 (09-05-2021)
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|
||||||
## 3.0.2.4552
|
## 3.0.2.4552
|
||||||
|
|
||||||
- Update to latest version from linuxserver/docker-bazarr
|
- Update to latest version from linuxserver/docker-bazarr
|
||||||
|
|||||||
@@ -1,15 +1,6 @@
|
|||||||
{
|
{
|
||||||
"arch": [
|
"arch": ["aarch64", "amd64", "armv7", "armhf"],
|
||||||
"aarch64",
|
"backup_exclude": ["**/Backups/*", "**/logs/*", "**/MediaCover/*"],
|
||||||
"amd64",
|
|
||||||
"armv7",
|
|
||||||
"armhf"
|
|
||||||
],
|
|
||||||
"backup_exclude": [
|
|
||||||
"**/Backups/*",
|
|
||||||
"**/logs/*",
|
|
||||||
"**/MediaCover/*"
|
|
||||||
],
|
|
||||||
"boot": "auto",
|
"boot": "auto",
|
||||||
"description": "Companion application to Sonarr and Radarr to download subtitles",
|
"description": "Companion application to Sonarr and Radarr to download subtitles",
|
||||||
"devices": [
|
"devices": [
|
||||||
@@ -32,12 +23,7 @@
|
|||||||
"PUID": "0",
|
"PUID": "0",
|
||||||
"PGID": "0"
|
"PGID": "0"
|
||||||
},
|
},
|
||||||
"map": [
|
"map": ["config:rw", "share:rw", "media:rw", "ssl"],
|
||||||
"config:rw",
|
|
||||||
"share:rw",
|
|
||||||
"media:rw",
|
|
||||||
"ssl"
|
|
||||||
],
|
|
||||||
"name": "Bazarr NAS",
|
"name": "Bazarr NAS",
|
||||||
"options": {
|
"options": {
|
||||||
"PUID": 0,
|
"PUID": 0,
|
||||||
@@ -49,10 +35,7 @@
|
|||||||
"ports_description": {
|
"ports_description": {
|
||||||
"6767/tcp": "web interface"
|
"6767/tcp": "web interface"
|
||||||
},
|
},
|
||||||
"privileged": [
|
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
|
||||||
"SYS_ADMIN",
|
|
||||||
"DAC_READ_SEARCH"
|
|
||||||
],
|
|
||||||
"schema": {
|
"schema": {
|
||||||
"PUID": "int",
|
"PUID": "int",
|
||||||
"PGID": "int",
|
"PGID": "int",
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [ ! -f "/usr/bin/bashio" ]; then
|
||||||
if [ ! -f "/usr/lib/bashio" ]; then
|
|
||||||
echo "Bashio does not exist, executing script"
|
echo "Bashio does not exist, executing script"
|
||||||
|
|
||||||
################
|
################
|
||||||
# Install apps #
|
# Install apps #
|
||||||
################
|
################
|
||||||
apt-get clean
|
apt-get clean
|
||||||
apt-get update \
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
jq \
|
jq \
|
||||||
curl \
|
curl \
|
||||||
@@ -20,9 +19,9 @@ if [ ! -f "/usr/lib/bashio" ]; then
|
|||||||
##################
|
##################
|
||||||
mkdir -p /tmp/bashio
|
mkdir -p /tmp/bashio
|
||||||
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
|
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
|
||||||
tar -xzf - --strip 1 -C /tmp/bashio \
|
tar -xzf - --strip 1 -C /tmp/bashio
|
||||||
mv /tmp/bashio/lib /usr/lib/bashio \
|
mv /tmp/bashio/lib /usr/lib/bashio
|
||||||
ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
|
||||||
rm -rf /tmp/bashio
|
rm -rf /tmp/bashio
|
||||||
|
|
||||||
echo "Bashio installed"
|
echo "Bashio installed"
|
||||||
|
|||||||
Reference in New Issue
Block a user