File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
services :
21
21
scrypted :
22
+ # LXC usage only
23
+ # lxc privileged: true
24
+
22
25
environment :
23
26
# Scrypted NVR Storage (Part 2 of 3)
24
27
@@ -32,6 +35,9 @@ services:
32
35
- SCRYPTED_WEBHOOK_UPDATE_AUTHORIZATION=Bearer SET_THIS_TO_SOME_RANDOM_TEXT
33
36
- SCRYPTED_WEBHOOK_UPDATE=http://localhost:10444/v1/update
34
37
38
+ # LXC usage only
39
+ # lxc - SCRYPTED_INSTALL_ENVIRONMENT=lxc-docker
40
+
35
41
# Avahi can be used for network discovery by passing in the host daemon
36
42
# or running the daemon inside the container. Choose one or the other.
37
43
# Uncomment next line to run avahi-daemon inside the container.
@@ -77,6 +83,11 @@ services:
77
83
78
84
# Default volume for the Scrypted database. Typically should not be changed.
79
85
- ~/.scrypted/volume:/server/volume
86
+
87
+ # LXC usage only
88
+ # lxc - /var/run/docker.sock:/var/run/docker.sock
89
+ # lxc - ~/.scrypted/docker-compose.yml:/docker/docker-compose.yml
90
+
80
91
# Uncomment the following lines to use Avahi daemon from the host
81
92
# Without this, AppArmor will block the container's attempt to talk to Avahi via dbus
82
93
# security_opt:
Original file line number Diff line number Diff line change 7
7
fi
8
8
9
9
function readyn() {
10
+ if [ " $SCRYPTED_NONINTERACTIVE " == " 1" ]
11
+ then
12
+ yn=" y"
13
+ return
14
+ fi
15
+
10
16
while true ; do
11
17
read -p " $1 (y/n) " yn
12
18
case $yn in
@@ -50,9 +56,15 @@ WATCHTOWER_HTTP_API_TOKEN=$(echo $RANDOM | md5sum)
50
56
DOCKER_COMPOSE_YML=$SCRYPTED_HOME /docker-compose.yml
51
57
echo " Created $DOCKER_COMPOSE_YML "
52
58
curl -s https://raw.githubusercontent.com/koush/scrypted/main/install/docker/docker-compose.yml | sed s/SET_THIS_TO_SOME_RANDOM_TEXT/" $( echo $RANDOM | md5sum | head -c 32) " /g > $DOCKER_COMPOSE_YML
53
- if [ -d /dev/dri ]
59
+
60
+ if [ -z " $SCRYPTED_LXC " ]
54
61
then
55
- sed -i ' s/' # ' "\/dev\/dri/"\/dev\/dri/g' $DOCKER_COMPOSE_YML
62
+ if [ -d /dev/dri ]
63
+ then
64
+ sed -i ' s/' # ' "\/dev\/dri/"\/dev\/dri/g' $DOCKER_COMPOSE_YML
65
+ fi
66
+ else
67
+ sed -i ' s/' # ' lxc /g' $DOCKER_COMPOSE_YML
56
68
fi
57
69
58
70
readyn " Install avahi-daemon? This is the recommended for reliable HomeKit discovery and pairing."
You can’t perform that action at this time.
0 commit comments