#!/bin/bash

#需要修改/usr/local/cdn/config/config.xml
#检查/home/bsy/workplace/boshiyuan-api-viewwatch/config/application-prod.properties
#使用crontab -e -> @reboot source {this/script.sh}

sleep 3

curdir=$(cd "$(dirname "$0")";pwd)

cd $curdir
umount /mnt/hgfs
vmhgfs-fuse .host:/share /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other,nonempty

service cdnd stop

cd /home/bsy/workplace/boshiyuan-api-viewwatch
./serv-start.sh restart

cd $curdir
service cdnd start

cd $curdir
