File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
OBJS = houserelays.o houserelays_config.o houserelays_gpio.o
3
3
LIBOJS =
4
4
5
+ SHARE =/usr/local/share/house
6
+
5
7
all : houserelays
6
8
7
9
main : houserelays.o
@@ -27,10 +29,11 @@ install:
27
29
cp init.debian /etc/init.d/houserelays
28
30
chown root:root /usr/local/bin/houserelays /etc/init.d/houserelays
29
31
chmod 755 /usr/local/bin/houserelays /etc/init.d/houserelays
30
- mkdir -p /usr/local/share/house/public/relays
31
- cp public/* /usr/local/share/house/public/relays
32
- chown root:root /usr/local/share/house/public/relays/*
33
- chmod 644 /usr/local/share/house/public/relays/*
32
+ mkdir -p $(SHARE ) /public/relays
33
+ chmod 755 $(SHARE ) $(SHARE ) /public $(SHARE ) /public/relays
34
+ cp public/* $(SHARE ) /public/relays
35
+ chown root:root $(SHARE ) /public/relays/*
36
+ chmod 644 $(SHARE ) /public/relays/*
34
37
if [ ! -e /etc/house/relays.json ] ; then cp config.json /etc/house/relays.json ; fi
35
38
chown root:root /etc/house/relays.json
36
39
chmod 755 /etc/house/relays.json
You can’t perform that action at this time.
0 commit comments