SL_firefox_parentlock_fix-1.0-5> A AlpA?ELj>-' lĴt-MSǭijs%7|ffb21aadcac2129fecb95f8db75d3f083b399483Fye_Ж2gಈ?ELjBđ#OG|}SO◀d /Ĭ5)|>+?d  " b r()%* + %, (- 48 @9 T: @ DF-XHYLbRdve{fklzCSL_firefox_parentlock_fix1.05Fixes afs lock problems for firefox, thunderbird, and seamonkeyWhen a users home area is in AFS space, it is possible for firefox, thunderbird, and/or seamonkey to leave a lock file called .parentlock when they are closed. The user is then not able to restart their problem until that lock file is removed. This puts in a startup script that cleans up that file.EKnoswad.fnal.govScientific LinuxGPLSLhttps://www.scientificlinux.org/linuxnoarch#Let's clean ourselves up if we're the last shopt -s nullglob if [ "$1" = "0" ] ; then #First firefox for line in /usr/lib{,64}/firefox-1.*/init.d do if [ -e "$line/S01parentlock" ] ; then rm -f "$line/S01parentlock" fi done #Then thunderbird for line in /usr/lib{,64}/thunderbird-1.*/init.d do if [ -e "$line/S01parentlock" ] ; then rm -f "$line/S01parentlock" fi done #Finolly seamonkey for line in /usr/lib{,64}/mozilla-seamonkey-1*/init.d do if [ -e "$line/S01parentlock" ] ; then rm -f "$line/S01parentlock" fi done if [ -e /usr/bin/mozilla ] ; then sed -i '/S01parentlock/d' /usr/bin/mozilla fi fi :SL_firefox_parentlock_fix-1.0-5.src.rpmSL_firefox_parentlock_fix@JJ/bin/sh/bin/shrpmlib(PayloadFilesHavePrefix)rpmlib(CompressedFileNames)4.0-13.0.4-14.2.3shopt -s nullglob for line in /usr/lib{,64}/firefox-1.*/init.d do if [ -d "$line" -a ! -e "$line/S01parentlock" ] ; then cat > "$line/S01parentlock" << EOF #!/bin/sh # # removes .parentlock # APP_FOLDER="\$HOME/.mozilla/firefox" find "\$APP_FOLDER" -noleaf -type d -maxdepth 1 -mindepth 1 | while read i; do if [ ! -L "\$i/lock" -a -e "\$i/.parentlock" ]; then rm -f "\$i/.parentlock" fi done EOF chmod 755 "$line/S01parentlock" fi done : #---------------------------------------------------------#shopt -s nullglob for line in /usr/lib{,64}/thunderbird-1.*/init.d do if [ -d "$line" -a ! -e "$line/S01parentlock" ] ; then cat > "$line/S01parentlock" << EOF #!/bin/sh # # removes .parentlock # APP_FOLDER="\$HOME/.thunderbird" find "\$APP_FOLDER" -noleaf -type d -maxdepth 1 -mindepth 1 | while read i; do if [ ! -L "\$i/lock" -a -e "\$i/.parentlock" ]; then rm -f "\$i/.parentlock" fi done EOF chmod 755 "$line/S01parentlock" fi done : #---------------------------------------------------------#shopt -s nullglob sed -i '/^[[:space:]]*exec[[:space:]]\+\$MOZ_PROGRAM/{i\ [ -x $MOZ_DIST_BIN/init.d/S01parentlock ] && $MOZ_DIST_BIN/init.d/S01parentlock }' /usr/bin/mozilla for line in /usr/lib{,64}/mozilla-seamonkey-1*/init.d do if [ -d "$line" -a ! -e "$line/S01parentlock" ] ; then cat > "$line/S01parentlock" << EOF #!/bin/sh # # removes .parentlock # APP_FOLDER="\$HOME/.mozilla" find "\$APP_FOLDER" -noleaf -type d -maxdepth 2 -mindepth 2 | grep -v firefox | grep -v Cache | while read i; do if [ ! -L "\$i/lock" -a -e "\$i/.parentlock" ]; then rm -f "\$i/.parentlock" fi done EOF chmod 755 "$line/S01parentlock" fi done : #---------------------------------------------------------#firefoxthunderbirdseamonkeyEEE3E3E >Stephan Wiesand 1.0-5Stephan Wiesand 1.0-4Troy Dawson 1.0-2Troy Dawson 1.0-2Troy Dawson 1.0-1- make this work on 64bit platforms - doublequote all shell variables- Fixed a couple of tests - Made the sed command for seamonkey a bit more readable - Remove extra lines in /usr/bin/mozilla for seamonkey in postun - Use the cleanscript macro everywhere- Fixed seamonkey's script- Fixed scripts by puting a \ infront of the $'s - Added bit to seamonkey trigger script so that it works - Added postun script so we clean up ourserves.- First go round of putting in the parentlock removers/bin/sh/bin/sh/bin/sh/bin/shnoswad.fnal.gov 11586959311.0-5-O2 -g -pipe -march=i386 -mcpu=i686cpiogzip9noarchnoarch-redhat-linux-gnuXr*Pp?bDv ?P3070704 $!A>A @5|