#########################################################################
# File Name: setup_background.sh
# Author: Francis
# Created Time: 2017年02月22日 星期三 02时41分23秒
#########################################################################
#!/bin/bash

echo 'Start install jmm...'

echo -e '#!/bin/bash +x\n\nsh /tmp/setup_jmm.sh 2>&1 | tee -a /tmp/setup_jmm.log' > /tmp/setup_jmm_temp.sh

yum -y install screen
wget http://download.icloudstudio.com/jmm/setup.sh -O /tmp/setup_jmm.sh

chmod +x /tmp/setup_jmm.sh
chmod +x /tmp/setup_jmm_temp.sh

screen -dmS setup_jmm -s /tmp/setup_jmm_temp.sh

#rm -rf /tmp/setup_lnmp_temp.sh

echo 'Running in the background...'
echo 'Installation log in /tmp/setup_jmm.log'
