Show
Ignore:
Timestamp:
12/13/07 15:06:12 (12 months ago)
Author:
gonzalo
Message:

RemoveScript? fixed/upgraded.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pbibuild/modules/filezilla/overlay-dir/PBI.RemoveScript.sh

    r929 r1019  
    1010rm /usr/local/share/filezilla 
    1111 
    12 kdialog --yesno "Do you wish to remove any saved profile data?" 
    13 if [ "$?" = "0" ] 
     12if [ ! -z "$DISPLAY" ] 
    1413then 
    15  
    16 cd /home 
    17 for i in `ls` 
    18 do 
    19   if [ -e "${i}/.filezilla" ] 
    20   then 
    21     rm -rf ${i}/.filezilla 2>/dev/null 
    22   fi 
    23 done 
    24  
     14 # Ask if we want to remove the user profiles 
     15 kdialog --yesno "Do you want to remove FileZilla user settings?" --title "Remove user settings" 
     16 if [ "$?" = "0" ] 
     17 then 
     18  cd /home 
     19  for i in `ls` 
     20  do 
     21   if [ -e "/home/${i}/.filezilla" ] 
     22   then 
     23    rm -rf /home/${i}/.filezilla 
     24   fi 
     25  done 
     26 fi 
    2527fi