@@ -47,7 +47,7 @@ rm -f ./unifi.deb
chown -R unifi:unifi /usr/lib/unifi
rm -rf /var/lib/apt/lists/*
-rm -rf ${ODATADIR} ${OLOGDIR} ${BASEDIR}/*
+rm -rf ${ODATADIR} ${OLOGDIR} ${BASEDIR}/{data,run,logs}
mkdir -p ${DATADIR} ${LOGDIR}
ln -s ${DATADIR} ${BASEDIR}/data
ln -s ${RUNDIR} ${BASEDIR}/run