Bob Mottram před 8 roky
rodič
revize
1e7e8bf4eb
No account linked to committer's email
1 změnil soubory, kde provedl 5 přidání a 6 odebrání
  1. 5
    6
      website/deploy.sh

+ 5
- 6
website/deploy.sh Zobrazit soubor

4
 dest_dir=$2
4
 dest_dir=$2
5
 
5
 
6
 if [ ! $lang ]; then
6
 if [ ! $lang ]; then
7
-	lang='EN'
7
+    lang='EN'
8
 fi
8
 fi
9
 if [ ! $2 ]; then
9
 if [ ! $2 ]; then
10
-	echo 'Specify language and destination directory'
11
-	exit 1
10
+    echo 'Specify language and destination directory'
11
+    exit 1
12
 fi
12
 fi
13
 
13
 
14
 if [ ! -d $dest_dir ]; then
14
 if [ ! -d $dest_dir ]; then
15
-	mkdir -p $dest_dir
15
+    mkdir -p $dest_dir
16
 fi
16
 fi
17
 if [ ! -d $dest_dir/images ]; then
17
 if [ ! -d $dest_dir/images ]; then
18
-	mkdir $dest_dir/images
18
+    mkdir $dest_dir/images
19
 fi
19
 fi
20
 
20
 
21
 cp -r $lang/* $dest_dir
21
 cp -r $lang/* $dest_dir
24
 chown -R www-data:www-data $dest_dir
24
 chown -R www-data:www-data $dest_dir
25
 
25
 
26
 echo "Website deployed to $dest_dir"
26
 echo "Website deployed to $dest_dir"
27
-exit 0