mostfun安装脚本设计

792

#下载主程序:
cd /home
wget http://clz.me/download/mostfuncp-0.1.zip
unzip mostfuncp-0.1.zip

#下载依赖:
wget https://clz.me/get-pip.py
python get-pip.py
pip install -r /home/mostfun/requirements.txt

#创建资源文件夹:
cd /home
mkdir mostfuncp
cd mostfuncp
mkdir gcode
mkdir description
mkdir img
mkdir model

#设置自启动
cp /home/mostfun/start.sh -r /etc/init.d/
cd /etc/init.d
chmod +x /etc/init.d/start.sh
update-rc.d start.sh defaults 97

留下一个答复

Please enter your comment!
Please enter your name here