Changeset 13580

Show
Ignore:
Timestamp:
02/23/12 21:21:17 (1 year ago)
Author:
GameGamer43
Message:

also only change permissions on id_rsa, if the file exists

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.10/amp_conf/bin/freepbx_engine

    r13579 r13580  
    213213  chmod -R g+w $(readlink -f $ASTVARLIBDIR) 
    214214  #ssh keys need to be 0600 
    215   [ -d $ASTVARLIBDIR/.ssh ] && chmod -R 0600 $ASTVARLIBDIR/.ssh 
     215  [ -f $ASTVARLIBDIR/.ssh/id_rsa ] && chmod 0600 $ASTVARLIBDIR/.ssh/id_rsa 
    216216  chown -R $AMPASTERISKUSER:$AMPASTERISKGROUP $(readlink -f $ASTLOGDIR) 
    217217  chmod -R g+w $(readlink -f $ASTLOGDIR)