#!/bin/bash
#安装3.0，兼容旧版本配置
APP_PATH="/Applications/Guard Station.app/Contents/MacOS"
APP_PATH_NEW="/Applications/Guard Station 3.0.app/Contents/MacOS"

if [ -f "$APP_PATH/ezsv2.db" ] && [ ! -f "$APP_PATH_NEW/ezsv2.db" ]
then
cp -p "$APP_PATH/ezsv2.db" "$APP_PATH_NEW"
fi

if [ -f "$APP_PATH/Config.xml" ] && [ ! -f "$APP_PATH_NEW/Config.xml" ]
then
cp -p "$APP_PATH/Config.xml" "$APP_PATH_NEW"
fi
