adapt master to develop
[taxeditor.git] / eu.etaxonomy.taxeditor / deploy_nightly.sh
index 8bc30efff713533cbd4da6aa030509978d98313d..74583cf6f8224638e1b62626c1af777f8fb3f969 100755 (executable)
@@ -1,23 +1,26 @@
 #!/bin/bash
 
-# testing
-WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
+# local testing
+#WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
+# NOTE by AM (2022-06-07): this is probably outdated and can be removed as
+# we build with maven/tycho/jenkins now. Before removing compare with current
+# configuration
 
 PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
 
-DEPLOYMENT_SERVER="wp5.e-taxonomy.eu"
+DEPLOYMENT_SERVER="cybertaxonomy.eu"
 DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
 
 # bash check if directory exists
 if [ ! -d $PRODUCT_DIR ]; then
-       echo "Target directory does not exist: $PRODUCT_DIR" 
+       echo "Product directory does not exist: $PRODUCT_DIR" 
        exit 1
 fi 
 
-PRODUCTS=$(ls  $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
+PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
 
-if [ ! -e $PRODUCTS ]; then
-       echo "No products in target folder."
+if [ ! $PRODUCTS ]; then
+       echo "No products in product directory: $PRODUCT_DIR"
        exit 1
 fi