Sfoglia il codice sorgente

Copy dat links file into downloads directory

Bob Mottram 6 anni fa
parent
commit
278eabd149
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      website/deploy.sh

+ 4
- 1
website/deploy.sh Vedi File

@@ -21,7 +21,10 @@ fi
21 21
 cp -r $lang/* $dest_dir
22 22
 cp *.css $dest_dir
23 23
 cp -r ../img/* $dest_dir/images
24
-cp $lang/images.txt $dest_dir
24
+if [ ! -d $dest_dir/downloads ]; then
25
+    mkdir $dest_dir/downloads
26
+fi
27
+cp $lang/images.txt $dest_dir/downloads
25 28
 chown -R www-data:www-data $dest_dir
26 29
 
27 30
 echo "Website deployed to $dest_dir"