mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-11-30 11:17:48 +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'
|
||||
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() {
|
||||
grep -oE 'github_ref: (.*)' "$DASHBOARD_PATH/www/version" | $SED 's|github_ref: refs/tags/(.*)|\1|g'
|
||||
}
|
||||
|
||||
if [ -d "$DASHBOARD_PATH/www" ] && [ "$(version)" = "$VERSION" ]; then
|
||||
if [ -d "$DASHBOARD_PATH/www" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user