Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
Remove 20080 port + fix log volumes (#10)
Browse files Browse the repository at this point in the history
Add device connection interface
Increase JWT token lifetime
Controller performance optimization
Fixed dimmer device assigment bugs
Fixed device status display
Fix UI bugs
Optimized backup functionality
Closed 20080 port, https on 20443 available only
  • Loading branch information
artjoms-faltins authored Mar 20, 2019
1 parent b052b64 commit d97c481
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ set -o pipefail
temp="/tmp/ueot-install"
args="$*"

UEOT_HTTP_PORT="20080"
UEOT_HTTPS_PORT="20443"

LOG_DIR="/var/log/unifi-led"
LOG_FILENAME="led-controller.log"

UEOT_VERSION="1.5.1"
UEOT_VERSION="1.5.2"

USERNAME="ueot"
HOME_DIR="/home/${USERNAME}"
Expand Down Expand Up @@ -146,7 +145,8 @@ create_docker_compose_file() {
rm docker-compose.yml
fi

echo "version: '2'
cat << EOF > docker-compose.yml
version: '2'
services:
postgres:
Expand All @@ -166,21 +166,14 @@ services:
image: ubnt/eot:${UEOT_VERSION}
restart: always
volumes:
- /home/ueot/logs:/app/logs
- /var/log/unifi-led:/var/logs/unifi-led
network_mode: host
environment:
- PLATFORM=linux
depends_on:
- postgres
" > docker-compose.yml
}
create_log_dir() {
if [ ! -d "$LOG_DIR" ]; then
mkdir "$LOG_DIR"
touch "$LOG_DIR/$LOG_FILENAME"
chown -R "$USERNAME" "$LOG_DIR"
fi
EOF
}

start_docker_containers() {
Expand All @@ -194,14 +187,21 @@ start_docker_containers() {
fi
}

create_log_dir() {
if [ ! -d "$LOG_DIR" ]; then
mkdir "$LOG_DIR"
touch "$LOG_DIR/$LOG_FILENAME"
chown -R "$USERNAME" "$LOG_DIR"
fi
}

confirm_success() {
echo "Waiting for UEOT to start"
n=0
until [ ${n} -ge 10 ]
do
sleep 3s
ueotRunning=true
nc -z 127.0.0.1 "${UEOT_HTTP_PORT}" && break
nc -z 127.0.0.1 "${UEOT_HTTPS_PORT}" && break
echo "."
ueotRunning=false
Expand Down
2 changes: 1 addition & 1 deletion latest-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.1
1.5.2

0 comments on commit d97c481

Please sign in to comment.