mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-30 19:28:09 +08:00
fix dashboard
This commit is contained in:
parent
4a8d973c55
commit
660fc66a97
@ -9,16 +9,8 @@ RELEASE_ASSET_FILE="emqx-dashboard.zip"
|
|||||||
DASHBOARD_PATH='lib-ce/emqx_dashboard/priv'
|
DASHBOARD_PATH='lib-ce/emqx_dashboard/priv'
|
||||||
DIRECT_DOWNLOAD_URL="http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_release/emqx_dashboard.zip"
|
DIRECT_DOWNLOAD_URL="http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_release/emqx_dashboard.zip"
|
||||||
|
|
||||||
case $(uname) in
|
|
||||||
*Darwin*) SED="sed -E";;
|
|
||||||
*) SED="sed -r";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
version() {
|
if [ -d "$DASHBOARD_PATH/www" ]; then
|
||||||
grep -oE 'github_ref: (.*)' "$DASHBOARD_PATH/www/version" | $SED 's|github_ref: refs/tags/(.*)|\1|g'
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ -d "$DASHBOARD_PATH/www" ] && [ "$(version)" = "$VERSION" ]; then
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user