Set UID, GID, and executable bits on uploaded application (#12)

Also remove old application rather than replacing directly, so it can be replaced while running.
This commit is contained in:
Peter Johnson
2018-12-30 00:13:52 -08:00
committed by GitHub
parent de6f59548a
commit 0c1008defa
2 changed files with 31 additions and 4 deletions
+4
View File
@@ -6,6 +6,8 @@ OPENCV_INSTALL?=../03-build/opencv-build/install
EXEC_HOME?=/home/pi
FRC_JSON?=/boot/frc.json
DHCPCD_CONF?=/boot/dhcpcd.conf
APP_UID?=1000
APP_GID?=1000
.PHONY: all
.SUFFIXES:
@@ -65,6 +67,8 @@ rpiConfigServer: ${RPICONFIGSERVER_OBJS}
'-DEXEC_HOME="${EXEC_HOME}"' \
'-DFRC_JSON="${FRC_JSON}"' \
'-DDHCPCD_CONF="${DHCPCD_CONF}"' \
'-DAPP_UID=${APP_UID}' \
'-DAPP_GID=${APP_GID}' \
$<
%.html.cpp: %.html