Skip to content
Snippets Groups Projects
Commit 33aa1686 authored by Bob Mottram's avatar Bob Mottram
Browse files

Website deployment script

parent 697774bf
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
lang=$1
dest_dir=$2
if [ ! $lang ]; then
lang='EN'
fi
if [ ! $2 ]; then
echo 'Specify language and destination directory'
exit 1
fi
if [ ! -d $dest_dir ]; then
mkdir -p $dest_dir
fi
if [ ! -d $dest_dir/images ]; then
mkdir $dest_dir/images
fi
cp -r website/* $dest_dir
cp *.css $dest_dir
cp -r ../img/* $dest_dir/images
chown -R www-data:www-data $dest_dir
echo "Website deployed to $dest_dir"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment