Skip to content

Commit

Permalink
Move rundir into /unifi/run
Browse files Browse the repository at this point in the history
See issue #525
  • Loading branch information
jacobalberty committed Feb 19, 2022
1 parent 1c7d5a5 commit 54305e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ENV BASEDIR=/usr/lib/unifi \
DATADIR=/unifi/data \
LOGDIR=/unifi/log \
CERTDIR=/unifi/cert \
RUNDIR=/var/run/unifi \
RUNDIR=/unifi/run \
ORUNDIR=/var/run/unifi \
ODATADIR=/var/lib/unifi \
OLOGDIR=/var/log/unifi \
CERTNAME=cert.pem \
Expand Down
6 changes: 3 additions & 3 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ rm -f ./unifi.deb
chown -R unifi:unifi /usr/lib/unifi
rm -rf /var/lib/apt/lists/*

rm -rf ${ODATADIR} ${OLOGDIR}
mkdir -p ${DATADIR} ${LOGDIR}
rm -rf ${ODATADIR} ${OLOGDIR} ${ORUNDIR}
mkdir -p ${DATADIR} ${LOGDIR} ${RUNDIR}
ln -s ${DATADIR} ${BASEDIR}/data
ln -s ${RUNDIR} ${BASEDIR}/run
ln -s ${LOGDIR} ${BASEDIR}/logs
rm -rf {$ODATADIR} ${OLOGDIR}
ln -s ${DATADIR} ${ODATADIR}
ln -s ${LOGDIR} ${OLOGDIR}
ln -s ${RUNDIR} ${ORUNDIR}
mkdir -p /var/cert ${CERTDIR}
ln -s ${CERTDIR} /var/cert/unifi

Expand Down

0 comments on commit 54305e1

Please sign in to comment.