Hlavní navigace

Názor ke článku Jak vyčistit databáze a urychlit si Firefox od marek - /etc/rc.local: FFUSERS="marek" if [[ `ps -ef | grep 'firefox' |...

  • 13. 7. 2009 11:08

    marek (neregistrovaný) 79.86.115.---

    /etc/rc.local:

    FFUSERS="marek"
    if [[ `ps -ef | grep 'firefox' | grep -vc 'grep'` -eq 0 ]]
    then
    for u in $FFUSERS
    do
    FFPROFILES=`grep 'Path' /home/"$u"/.mo­zilla/firefox/pro­files.ini | awk -F \= '{ print $2 }'`
    for p in $FFPROFILES
    do
    if [[ -d /home/"$u"/.mo­zilla/firefox/"$p" ]]
    then
    echo "Compacting SQLite DB files for user ${u}, profile ${p}..."
    cd /home/"$u"/.mo­zilla/firefox/"$p"
    for z in *.sqlite; do echo "VACUUM;" | sqlite3 "$z"; done
    fi
    done
    done
    fi