Changeset 7


Ignore:
Timestamp:
01/12/08 17:31:17 (4 years ago)
Author:
kay
Message:

prompt Funktion überarbeitet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/addons/share/addon_restartApache.uninstall.sh

    r6 r7  
    2727  answer='' 
    2828  while [ true ]; do 
    29     echo -n "save configuration (${1})? [yN] "; 
     29    echo -n "${1} (${2})? [${3}] "; 
    3030    read readAnswer 
    3131    readAnswer=$(echo ${readAnswer} | tr [:upper:] [:lower:]); 
     
    3434      answer=$readAnswer; 
    3535    elif [ "$readAnswer" == '' ]; then 
    36       answer='n'; 
     36      answer="${4}"; 
    3737    else 
    3838      answer=''; 
     
    4747for conf in $preNames; do 
    4848  if [ -f /opt/pdadmin/addons/conf/$conf.conf ]; then 
    49     prompt $conf.conf; 
     49    prompt 'save configuration' $conf.conf 'yN' 'n'; 
    5050    if [ "$answer" == 'y' ]; then 
    5151      mv /opt/pdadmin/addons/conf/$conf.conf /opt/pdadmin/addons/conf/$conf.conf.bak; 
Note: See TracChangeset for help on using the changeset viewer.