#!/bin/sh
echo `pwd`
echo $1
if [ ! -n "$1" ] ;then
echo "you have not input a word!"
else
echo "the word you input is $1"
git clone https://www.github.com/305806761/babyfs.git $1
if [ "$2" = "ln" ]
then
rm -fr v1
ln -s $1 v1
fi
cd $1
chmod -R 777 runtime
chmod -R 777 web/assets
mkdir -p web/uploads/user_course
touch web/uploads/user_course/uploadFile.xlsx
chmod -R 777 web/uploads
composer install
fi