Add read-only MG4 ADB status collector
This commit is contained in:
+4
-1
@@ -38,7 +38,7 @@ fi
|
||||
echo "[1/7] Installing operating-system packages"
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update
|
||||
apt-get install -y ca-certificates curl gnupg git rsync sudo util-linux avahi-daemon sqlite3 build-essential
|
||||
apt-get install -y ca-certificates curl gnupg git rsync sudo util-linux avahi-daemon sqlite3 android-tools-adb build-essential
|
||||
|
||||
node_major=""
|
||||
if command -v node >/dev/null 2>&1; then
|
||||
@@ -63,6 +63,9 @@ echo "[3/7] Creating the service account and directories"
|
||||
if ! id "${SERVICE_USER}" >/dev/null 2>&1; then
|
||||
useradd --system --home-dir "${DATA_DIR}" --shell /usr/sbin/nologin --user-group "${SERVICE_USER}"
|
||||
fi
|
||||
if getent group plugdev >/dev/null 2>&1; then
|
||||
usermod --append --groups plugdev "${SERVICE_USER}"
|
||||
fi
|
||||
install -d -m 0755 -o root -g root "${INSTALL_ROOT}" "${REPOSITORY}" "${RELEASES}"
|
||||
install -d -m 0750 -o "${SERVICE_USER}" -g "${SERVICE_USER}" "${DATA_DIR}"
|
||||
install -d -m 0750 -o root -g "${SERVICE_USER}" "${CONFIG_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user