Show
Ignore:
Timestamp:
02/19/11 18:57:19 (2 years ago)
Author:
p_lindheimer
Message:

change rm to mv and don't call write_freepbxconf every time we run restart. (if this is desired, then it should be called from start more so then restart (but both) re #4838 not closing until tested and feedback provided

Files:

Legend:

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

    r11263 r11493  
    1111ROOT_UID=0   # root uid is 0 
    1212E_NOTROOT=67 # Non-root exit error 
    13 # define freepbx config file if not alreaddy set 
     13# define freepbx config file if not already set 
    1414if [ -z "$FREEPBX_CONF" ]; then 
    1515  if [ -e "/etc/freepbx.conf" ]; then 
     
    6060    EOF 
    6161  fi 
    62   if [ -e /etc/asterisk/freepbx.conf ]; then 
    63     rm /etc/asterisk/freepbx.conf 
     62  if [ -e /etc/asterisk/freepbx.conf -a ! -e /etc/freepbx.conf ]; then 
     63    echo moving /etc/asterisk/freepbx.conf to /etc/freepbx.conf 
     64    mv /etc/asterisk/freepbx.conf /etc/ 
     65    if [ "$?" -ne "0" ]; then 
     66      echo "unable to move, FreePBX will function fine but you will" 
     67      echo "get this error until the file can be successfully moved" 
     68    fi 
    6469  fi 
    6570} 
     
    376381    stop_fop 
    377382    sleep 1 
    378     write_freepbxconf 
    379383    chown_asterisk 
    380384    run_asterisk