diff --git a/deploy.sh b/deploy.sh deleted file mode 100644 index b75cb85b196312641947a76b19e7692e2d55a5b1..0000000000000000000000000000000000000000 --- a/deploy.sh +++ /dev/null @@ -1,70 +0,0 @@ -if [ "$HOSTNAME" == 'qlf-medsci' ] ; then - if [ "$1" == 'qualif' ] - then - if [ "$2" == 'pixees-theme' ] - then - echo "Deployment of pixees-theme on qualif" - cd /appli/www/pixees/wp-content/themes/pixees-theme - git pull - elif [ "$2" == 'classcodev1' ] - then - echo "Deployment of class_code plugin on qualif" - cd /appli/www/pixees/wp-content/plugins/class_code - git pull - elif [ "$2" == 'classcodev2' ] - then - echo "Deployment of class_code_v2 plugin on qualif" - cd /appli/www/pixees/wp-content/plugins/class_code_v2 - git pull - elif [ "$2" == 'all' ] - then - echo "Deployment of pixees-theme on qualif" - cd /appli/www/pixees/wp-content/themes/pixees-theme - git pull - echo "Deployment of class_code plugin on qualif" - cd /appli/www/pixees/wp-content/plugins/class_code - git pull - echo "Deployment of class_code_v2 plugin on qualif" - cd /appli/www/pixees/wp-content/plugins/class_code_v2 - git pull - fi - elif [ "$1" == 'prod' ] - then - echo "Nothing to do on qualif, deployment on prod asked" - fi -fi -if [ "$HOSTNAME" == 'medsci' ] ; then - if [ "$1" == 'prod' ] - then - if [ "$2" == 'pixees-theme' ] - then - echo "Deployment of pixees-theme on prod" - cd /appli/www/pixees/wp-content/themes/pixees-theme - git pull - elif [ "$2" == 'classcodev1' ] - then - echo "Deployment of class_code plugin on prod" - cd /appli/www/pixees/wp-content/plugins/class_code - git pull - elif [ "$2" == 'classcodev2' ] - then - echo "Deployment of class_code_v2 plugin on prod" - cd /appli/www/pixees/wp-content/plugins/class_code_v2 - git pull - elif [ "$2" == 'all' ] - then - echo "Deployment of pixees-theme on prod" - cd /appli/www/pixees/wp-content/themes/pixees-theme - git pull - echo "Deployment of class_code plugin on prod" - cd /appli/www/pixees/wp-content/plugins/class_code - git pull - echo "Deployment of class_code_v2 plugin on prod" - cd /appli/www/pixees/wp-content/plugins/class_code_v2 - git pull - fi - elif [ "$1" == 'qualif' ] - then - echo "Nothing to do on prod, deployment on qualif asked" - fi -fi