[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/scripts/ -> deploy.sh (source)

   1  #!/bin/bash
   2  
   3  # $Id: deploy.sh 7061 2012-04-02 09:22:45Z dbo $ #
   4  
   5  # Deploie des fichiers dans les home
   6  
   7  nom=$1
   8  repertoire=$2
   9  a=$3
  10  file=$4
  11  
  12  if [ $repertoire = "x" ]
  13  then
  14      repertoire=""
  15  fi
  16  
  17  
  18  if [ ! -e "/home/$nom$repertoire/$file" ]
  19  then
  20      cp -a "/var/se3/Docs/deploy/$file" "/home/$nom$repertoire"
  21      chown -R $nom:admins "/home/$nom$repertoire/$file"
  22  elif test $a -eq 1
  23  then
  24      cp -a "/var/se3/Docs/deploy/$file" /home/$nom$repertoire 
  25      chown -R $nom:admins "/home/$nom$repertoire/$file"
  26  fi
  27  
  28  


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1