Skip to content

Commit ce762bc

Browse files
committed
Merge remote-tracking branch 'gcgarner/master' into Portainer-agent
2 parents 4324578 + 9a308a7 commit ce762bc

File tree

6 files changed

+76
-7
lines changed

6 files changed

+76
-7
lines changed

.templates/qbittorrent/service.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
qbittorrent:
2+
image: linuxserver/qbittorrent
3+
container_name: qbittorrent
4+
environment:
5+
- PUID=1000
6+
- PGID=1000
7+
- UMASK_SET=022
8+
- WEBUI_PORT=15080
9+
volumes:
10+
- ./volumes/qbittorrent/config:/config
11+
- ./volumes/qbittorrent/downloads:/downloads
12+
ports:
13+
- 6881:6881
14+
- 6881:6881/udp
15+
- 15080:15080
16+
- 1080:1080

.templates/zigbee2mqtt/service.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
image: koenkk/zigbee2mqtt
44
volumes:
55
- ./volumes/zigbee2mqtt/data:/app/data
6+
- /run/udev:/run/udev:ro
67
devices:
78
- /dev/ttyAMA0:/dev/ttyACM0
89
#- /dev/ttyACM0:/dev/ttyACM0
9-
restart: unless-stopped
10+
restart: always
1011
network_mode: host
12+
privileged: true
13+
environment:
14+
- TZ=Europe/Amsterdam
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
zigbee2mqttassistant:
2+
container_name: zigbee2mqttassistant
3+
image: carldebilly/zigbee2mqttassistant
4+
restart: unless-stopped
5+
env_file:
6+
- ./services/zigbee2mqttassistant/zigbee2mqttassistant.env
7+
ports:
8+
- 8880:80
9+
environment:
10+
- VIRTUAL_HOST=~^zigbee2mqttassistant\..*\.xip\.io
11+
- VIRTUAL_PORT=8880
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#TZ=Europe/Budapest \
2+
Z2MA_SETTINGS__MQTTSERVER=mosquitto
3+
#Z2MA_SETTINGS__MQTTUSERNAME=
4+
#Z2MA_SETTINGS__MQTTPASSWORD=

menu.sh

+39-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#get path of menu correct
44
pushd ~/IOTstack
55

6+
#This is the Display name for the menu
7+
#structure : [CONTAINER]=MENU Display Text
8+
#One entry per line to simplify PRs
69
declare -A cont_array=(
710
[portainer]="Portainer"
811
[portainer_agent]="Portainer agent"
@@ -29,11 +32,42 @@ declare -A cont_array=(
2932
[diyhue]="diyHue"
3033
[homebridge]="Homebridge"
3134
[python]="Python 3"
35+
[qbittorrent]="qbittorrent"
36+
[zigbee2mqttassistant]="zigbee2mqttassistant"
37+
)
3238

39+
#The convension for CONTAINER is that it is the name of the .templates/CONTAINER directory and as the key below for the relevant arch
40+
41+
# keys for CONTAINER
42+
# One per line to simply PR
43+
declare -a armhf_keys=(
44+
"portainer"
45+
"nodered"
46+
"influxdb"
47+
"grafana"
48+
"mosquitto"
49+
"telegraf"
50+
"mariadb"
51+
"postgres"
52+
"adminer"
53+
"openhab"
54+
"zigbee2mqtt"
55+
"pihole"
56+
"plex"
57+
"tasmoadmin"
58+
"rtl_433"
59+
"espruinohub"
60+
"motioneye"
61+
"webthings_gateway"
62+
"blynk_server"
63+
"nextcloud"
64+
"diyhue"
65+
"homebridge"
66+
"python"
67+
"zigbee2mqttassistant"
68+
"qbittorrent",
69+
"portainer_agent"
3370
)
34-
declare -a armhf_keys=("portainer" "nodered" "influxdb" "grafana" "mosquitto" "telegraf" "mariadb" "postgres"
35-
"adminer" "openhab" "zigbee2mqtt" "pihole" "plex" "tasmoadmin" "rtl_433" "espruinohub"
36-
"motioneye" "webthings_gateway" "blynk_server" "nextcloud" "diyhue" "homebridge" "python" "portainer_agent")
3771

3872
sys_arch=$(uname -m)
3973

@@ -192,7 +226,7 @@ case $mainmenu_selection in
192226
sudo apt install -y docker-compose
193227
fi
194228

195-
if (whiptail --title "Restart Required" --yesno "It is recommended that you restart you device now. Select yes to do so now" 20 78); then
229+
if (whiptail --title "Restart Required" --yesno "It is recommended that you restart your device now. Select yes to do so now" 20 78); then
196230
sudo reboot
197231
fi
198232
;;
@@ -407,7 +441,7 @@ case $mainmenu_selection in
407441
"tinker" " " \
408442
3>&1 1>&2 2>&3)
409443
if [ -n "$hassio_machine" ]; then
410-
curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh | sudo bash -s -- -m $hassio_machine
444+
curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | sudo bash -s -- -m $hassio_machine
411445
else
412446
echo "no selection"
413447
exit

scripts/docker_backup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [ -f ./backups/dropbox ]; then
5858

5959
#upload new backup to dropbox
6060
echo "uploading to dropbox"
61-
$dropboxuploader upload ./backups/$backupfile $dropboxfolder
61+
$dropboxuploader upload ./backups/$backupfile $backupfile
6262

6363
#list older files to be deleted from cloud (exludes last 7)
6464
#to change dropbox backups retained, change below -7 to whatever you want

0 commit comments

Comments
 (0)