This commit is contained in:
Bob Mottram 2016-09-11 16:07:18 +01:00
parent 0b74de2e97
commit 1e7e8bf4eb
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 5 additions and 6 deletions

View File

@ -4,18 +4,18 @@ lang=$1
dest_dir=$2
if [ ! $lang ]; then
lang='EN'
lang='EN'
fi
if [ ! $2 ]; then
echo 'Specify language and destination directory'
exit 1
echo 'Specify language and destination directory'
exit 1
fi
if [ ! -d $dest_dir ]; then
mkdir -p $dest_dir
mkdir -p $dest_dir
fi
if [ ! -d $dest_dir/images ]; then
mkdir $dest_dir/images
mkdir $dest_dir/images
fi
cp -r $lang/* $dest_dir
@ -24,4 +24,3 @@ cp -r ../img/* $dest_dir/images
chown -R www-data:www-data $dest_dir
echo "Website deployed to $dest_dir"
exit 0