mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
add transmission-openvpn (#23)
This commit is contained in:
@@ -24,11 +24,11 @@ async function run(opts: { patch: boolean })
|
||||
let updated = false;
|
||||
for (const addon of dirs)
|
||||
{
|
||||
if(addon === "tmp")
|
||||
if (addon === "tmp")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (!first)
|
||||
{
|
||||
console.log(chalk.gray("============================================================="));
|
||||
@@ -56,6 +56,7 @@ async function run(opts: { patch: boolean })
|
||||
}
|
||||
|
||||
const versionRegex = config.maintenance.version_regex ? new RegExp(config.maintenance.version_regex) : null;
|
||||
const releaseRegex = config.maintenance.release_regex ? new RegExp(config.maintenance.release_regex) : null;
|
||||
|
||||
const addonPath = path.join(root, addon);
|
||||
const changelogPath = path.join(addonPath, "CHANGELOG.md");
|
||||
@@ -83,6 +84,15 @@ async function run(opts: { patch: boolean })
|
||||
}
|
||||
}
|
||||
|
||||
if (releaseRegex)
|
||||
{
|
||||
const r = releaseRegex.exec(releaseInfo.tag_name);
|
||||
if (r && r.length > 1)
|
||||
{
|
||||
releaseInfo.tag_name = r[1];
|
||||
}
|
||||
}
|
||||
|
||||
if (tag == releaseInfo.tag_name)
|
||||
{
|
||||
console.log(chalk.greenBright(`base image ${image}:${chalk.magenta(coloredTag)} is up-to-date`))
|
||||
|
||||
3
transmission-openvpn/CHANGELOG.md
Normal file
3
transmission-openvpn/CHANGELOG.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 0.0.1
|
||||
|
||||
- transmission-openvpn 2.7 (haugene/transmission-openvpn:2.7)
|
||||
14
transmission-openvpn/Dockerfile
Normal file
14
transmission-openvpn/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM haugene/transmission-openvpn:2.7
|
||||
|
||||
RUN usermod -d /config-internal abc \
|
||||
&& sed -i "s|/config|/config-internal|g" /etc/openvpn/adjustConfigs.sh \
|
||||
&& sed -i "s|/config|/config-internal|g" /etc/openvpn/updateConfigs.sh \
|
||||
&& sed -i "s|/config|/config-internal|g" /etc/openvpn/start.sh \
|
||||
&& find /etc/openvpn/*/ -type f -name '*.sh' -exec sed -i "s|/config|/config-internal|g" {} \; \
|
||||
&& sed -i "s|/config|/config-internal|g" /etc/transmission/updatePort.sh \
|
||||
&& sed -i "s|/config|/config-internal|g" /etc/transmission/updatePPPort.sh \
|
||||
&& sed -i "s|/config|/config-internal|g" /etc/transmission/userSetup.sh
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
CMD ["dumb-init", "/customstart.sh"]
|
||||
26
transmission-openvpn/README.md
Normal file
26
transmission-openvpn/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Hassio Add-ons by petersendev: transmission-openvpn
|
||||
|
||||
## About
|
||||
|
||||
[transmission-openvpn](https://github.com/haugene/docker-transmission-openvpn) is an IRC network bouncer or BNC. It can detach the client from the actual IRC server, and also from selected channels. Multiple clients from different locations can connect to a single transmission-openvpn account simultaneously and therefore appear under the same nickname on IRC.
|
||||
|
||||
This addon is based on this docker image: https://hub.docker.com/r/haugene/transmission-openvpn.
|
||||
|
||||
## Installation
|
||||
|
||||
The installation of this add-on is pretty straightforward and not different in
|
||||
comparison to installing any other Hass.io add-on.
|
||||
|
||||
1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance.
|
||||
1. Install this add-on.
|
||||
1. Click the `Save` button to store your configuration.
|
||||
1. Start the add-on.
|
||||
1. Check the logs of the add-on to see if everything went well.
|
||||
1. Carefully configure the add-on to your preferences, see the official documentation for for that.
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Webui can be found at `<your-ip>:9091`.
|
||||
|
||||
[repository]: https://github.com/petersendev/hassio-addons
|
||||
62
transmission-openvpn/config.json
Normal file
62
transmission-openvpn/config.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "transmission-openvpn",
|
||||
"version": "0.0.1",
|
||||
"slug": "transmission-openvpn",
|
||||
"legacy": true,
|
||||
"maintenance": {
|
||||
"github_release": "https://github.com/haugene/docker-transmission-openvpn",
|
||||
"version_regex": "(\\d+\\.\\d)",
|
||||
"release_regex": "v(\\d+\\.\\d)"
|
||||
},
|
||||
"description": "OpenVPN and Transmission with WebUI",
|
||||
"url": "https://github.com/petersendev/hassio-addons/transmission-openvpn",
|
||||
"startup": "services",
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armhf"
|
||||
],
|
||||
"ports": {
|
||||
"9091/tcp": 9091
|
||||
},
|
||||
"ports_description": {
|
||||
"9091/tcp": "web ui"
|
||||
},
|
||||
"map": [
|
||||
"config:rw",
|
||||
"share:rw",
|
||||
"ssl"
|
||||
],
|
||||
"webui": "http://[HOST]:[PORT:9091]",
|
||||
"boot": "auto",
|
||||
"privileged": [
|
||||
"NET_ADMIN"
|
||||
],
|
||||
"options": {
|
||||
"PUID": 1001,
|
||||
"PGID": 1001,
|
||||
"OPENVPN_PROVIDER": "PIA",
|
||||
"OPENVPN_CONFIG": "CA Toronto",
|
||||
"OPENVPN_USERNAME": "",
|
||||
"OPENVPN_PASSWORD": "",
|
||||
"LOCAL_NETWORK": "192.168.0.0/16",
|
||||
"WEBPROXY_ENABLED": "false"
|
||||
},
|
||||
"schema": {
|
||||
"PUID": "int",
|
||||
"PGID": "int",
|
||||
"OPENVPN_PROVIDER": "str",
|
||||
"OPENVPN_CONFIG": "str",
|
||||
"OPENVPN_USERNAME": "str",
|
||||
"OPENVPN_PASSWORD": "str",
|
||||
"LOCAL_NETWORK": "str",
|
||||
"WEBPROXY_ENABLED": "bool"
|
||||
},
|
||||
"environment": {
|
||||
"TRANSMISSION_DOWNLOAD_DIR": "/share/transmission-openvpn/completed",
|
||||
"TRANSMISSION_INCOMPLETE_DIR": "/share/transmission-openvpn/incomplete",
|
||||
"TRANSMISSION_WATCH_DIR": "/share/transmission-openvpn/watch",
|
||||
"TRANSMISSION_HOME": "/share/transmission-openvpn/transmission-home"
|
||||
},
|
||||
"image": "petersendev/hassio-transmission-openvpn-{arch}"
|
||||
}
|
||||
BIN
transmission-openvpn/icon.png
Normal file
BIN
transmission-openvpn/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 302 KiB |
BIN
transmission-openvpn/logo.png
Normal file
BIN
transmission-openvpn/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 302 KiB |
14
transmission-openvpn/root/customstart.sh
Normal file
14
transmission-openvpn/root/customstart.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -d /config/transmission-openvpn ]; then
|
||||
echo "Creating /config/transmission-openvpn"
|
||||
mkdir -p /config/transmission-openvpn
|
||||
chown -R abc:abc /config/transmission-openvpn
|
||||
fi
|
||||
|
||||
if [ -d /config/transmission-openvpn/openvpn ]; then
|
||||
echo "Copying OpenVPN configurations"
|
||||
cp -R /config/transmission-openvpn/openvpn/* /etc/openvpn/
|
||||
fi
|
||||
|
||||
/etc/openvpn/start.sh
|
||||
Reference in New Issue
Block a user