convert LF

This commit is contained in:
Alexandre
2021-10-18 17:00:48 +02:00
parent 899c6e5b79
commit 39acb510bb
9 changed files with 109 additions and 109 deletions

View File

@@ -1,4 +1,5 @@
# 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]
## 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
```
[repository]: https://github.com/alexbelgium/hassio-addons
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg

View File

@@ -4,28 +4,38 @@
"slug": "updater",
"description": "Automatic addons update by aligning version tag with upstream releases",
"url": "https://github.com/alexbelgium/hassio-addons",
"arch": [
"aarch64",
"amd64",
"armv7",
"armhf"
],
"ports": {
},
"ports_description": {
},
"arch": ["aarch64", "amd64", "armv7", "armhf"],
"ports": {},
"ports_description": {},
"startup": "once",
"boot": "manual",
"environment": { "GIT_DISCOVERY_ACROSS_FILESYSTEM": "1" },
"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",
"gitpass": "gitpassword",
"gitmail": "youremail@gmail.com",
"verbose": true
},
"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",
"gitpass": "str",
"gitmail": "str",

View File

@@ -84,7 +84,8 @@ for addons in $(bashio::config "addon|keys"); do
else
LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
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
#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
# Remove " and modify version
LASTVERSION=${LASTVERSION//\"}
CURRENT=${CURRENT//\"}
LASTVERSION=${LASTVERSION//\"/}
CURRENT=${CURRENT//\"/}
jq --arg variable $LASTVERSION '.version = $variable' /data/${BASENAME}/${SLUG}/config.json | sponge /data/${BASENAME}/${SLUG}/config.json # Replace version tag
#Update changelog
@@ -169,4 +170,3 @@ for addons in $(bashio::config "addon|keys"); do
done
bashio::log.info "Addons update completed"

View File

@@ -1,28 +1,36 @@
## 1.0.0 (13-10-2021)
- Update to latest version from linuxserver/docker-bazarr
## 0.9.9 (11-09-2021)
- Update to latest version from linuxserver/docker-bazarr
## 0.9.8 (02-09-2021)
- Update to latest version from linuxserver/docker-bazarr
## 0.9.7 (14-08-2021)
- Update to latest version from linuxserver/docker-bazarr
## 0.9.6 (07-08-2021)
- Update to latest version from linuxserver/docker-bazarr
## 2.6.2 (07-08-2021)
- Update to latest version from alexbelgium/portainer
## 0.9.6 (21-07-2021)
- Update to latest version from linuxserver/docker-bazarr
- Enable smb mounts
## 0.9.5 (09-05-2021)
- Update to latest version from linuxserver/docker-bazarr
## 3.0.2.4552
- Update to latest version from linuxserver/docker-bazarr

View File

@@ -1,15 +1,6 @@
{
"arch": [
"aarch64",
"amd64",
"armv7",
"armhf"
],
"backup_exclude": [
"**/Backups/*",
"**/logs/*",
"**/MediaCover/*"
],
"arch": ["aarch64", "amd64", "armv7", "armhf"],
"backup_exclude": ["**/Backups/*", "**/logs/*", "**/MediaCover/*"],
"boot": "auto",
"description": "Companion application to Sonarr and Radarr to download subtitles",
"devices": [
@@ -32,12 +23,7 @@
"PUID": "0",
"PGID": "0"
},
"map": [
"config:rw",
"share:rw",
"media:rw",
"ssl"
],
"map": ["config:rw", "share:rw", "media:rw", "ssl"],
"name": "Bazarr NAS",
"options": {
"PUID": 0,
@@ -49,10 +35,7 @@
"ports_description": {
"6767/tcp": "web interface"
},
"privileged": [
"SYS_ADMIN",
"DAC_READ_SEARCH"
],
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"],
"schema": {
"PUID": "int",
"PGID": "int",

View File

@@ -1,13 +1,12 @@
#!/bin/bash
if [ ! -f "/usr/lib/bashio" ]; then
if [ ! -f "/usr/bin/bashio" ]; then
echo "Bashio does not exist, executing script"
################
# Install apps #
################
apt-get clean
apt-get update \
apt-get update
apt-get install -y --no-install-recommends \
jq \
curl \
@@ -20,9 +19,9 @@ if [ ! -f "/usr/lib/bashio" ]; then
##################
mkdir -p /tmp/bashio
curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" |
tar -xzf - --strip 1 -C /tmp/bashio \
mv /tmp/bashio/lib /usr/lib/bashio \
ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
tar -xzf - --strip 1 -C /tmp/bashio
mv /tmp/bashio/lib /usr/lib/bashio
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
rm -rf /tmp/bashio
echo "Bashio installed"