[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-synchro/usr/share/se3/scripts/ -> unison_keys.sh (source)

   1  #!/bin/bash
   2  # $Id:$
   3  # creation de l'installeur unison contenant la cle privee
   4  #
   5  user=$1
   6      . /etc/se3/config_s.cache.sh
   7      mkdir -p /home/$user/.ssh
   8      ssh-keygen -q -N "" -f /home/$user/.ssh/id_rsa
   9      cat /home/$user/.ssh/id_rsa.pub> /home/$user/.ssh/authorized_keys
  10      chown -R $user /home/$user/.ssh
  11      chmod 600 /home/$user/.ssh/*
  12      mkdir -p  /home/$user/unison/conf/.ssh
  13      sed  "s!USER!$user!g;s!SERVER!$unison_name!g" /var/se3/unattended/install/packages/unison/unison/conf/lycee.prf > /home/$user/unison/conf/lycee.prf
  14      sed  "s!USER!$user!g" /var/se3/unattended/install/packages/unison/unison/synchro_lycee-portable.bat > /home/$user/unison/synchro_lycee-portable.bat
  15      sed  "s!USER!$user!g" /var/se3/unattended/install/packages/unison/unison/synchro_lycee-disque.bat > /home/$user/unison/synchro_lycee-disque.bat
  16      sed  "s!USER!$user!g" /var/se3/unattended/install/packages/unison/unison/synchro_portable-disque.bat > /home/$user/unison/synchro_portable-disque.bat
  17  
  18      mv /home/$user/.ssh/id_rsa /home/$user/unison/conf/.ssh/id_rsa
  19      cp /var/se3/unattended/install/packages/unison/unison.zip /home/$user/unison_$user.zip
  20      cd /home/$user
  21      zip -r unison_$user.zip unison
  22      rm -fr /home/$user/unison
  23      chown $user  /home/$user/unison_$user.zip
  24  
  25    


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