SL_firefox_parentlock_fix-1.0-9> A AlpA?E#j~zv5MkBɈ5j:SmK1f02ed49669fa593442d7141718008cf3a508b36@oȩj ?E#jUVVS.p\7ei^tm k"ix?h|>+!?d  " b r()%* C+ a, d- p8 |9 : @kDsFXYbdefklzCSL_firefox_parentlock_fix1.09Fixes 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.E#~noswad.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/K99parentlock" ] ; then rm -f "$line/K99parentlock" fi done #Then thunderbird for line in /usr/lib{,64}/thunderbird-1.*/init.d do if [ -e "$line/K99parentlock" ] ; then rm -f "$line/K99parentlock" fi done #Finolly seamonkey for line in /usr/lib{,64}/mozilla-seamonkey-1*/init.d do if [ -e "$line/K99parentlock" ] ; then rm -f "$line/K99parentlock" fi done if [ -e /usr/bin/mozilla ] ; then sed -i '/K99parentlock/d' /usr/bin/mozilla fi fi :SL_firefox_parentlock_fix-1.0-9.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/K99parentlock" ] ; then cat > "$line/K99parentlock" << EOF #!/bin/sh # # removes .parentlock # APP_FOLDER="\$HOME/.mozilla/firefox" for i in \$(grep Path= \$APP_FOLDER/profiles.ini | sed s/Path=//); do if [ ! -L "\$APP_FOLDER/\$i/lock" -a -e "\$APP_FOLDER/\$i/.parentlock" ]; then rm -f "\$APP_FOLDER/\$i/.parentlock" fi done EOF chmod 755 "$line/K99parentlock" fi done : #---------------------------------------------------------#shopt -s nullglob for line in /usr/lib{,64}/thunderbird-1.*/init.d do if [ -d "$line" -a ! -e "$line/K99parentlock" ] ; then cat > "$line/K99parentlock" << EOF #!/bin/sh # # removes .parentlock # APP_FOLDER="\$HOME/.thunderbird" for i in \$(grep Path= \$APP_FOLDER/profiles.ini | sed s/Path=//); do if [ ! -L "\$APP_FOLDER/\$i/lock" -a -e "\$APP_FOLDER/\$i/.parentlock" ]; then rm -f "\$APP_FOLDER/\$i/.parentlock" fi done EOF chmod 755 "$line/K99parentlock" fi done : #---------------------------------------------------------#shopt -s nullglob sed -i '/^[[:space:]]*exec[[:space:]]\+\$MOZ_PROGRAM/{i\ [ -x $MOZ_DIST_BIN/init.d/K99parentlock ] && $MOZ_DIST_BIN/init.d/K99parentlock }' /usr/bin/mozilla for line in /usr/lib{,64}/mozilla-seamonkey-1*/init.d do if [ -d "$line" -a ! -e "$line/K99parentlock" ] ; then cat > "$line/K99parentlock" << 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/K99parentlock" fi done : #---------------------------------------------------------#firefoxthunderbirdseamonkeyE$KE$KEEEE3E3E >Troy Dawson 1.0-8Troy Dawson 1.0-7Troy Dawson 1.0-6Stephan Wiesand 1.0-5Stephan Wiesand 1.0-4Troy Dawson 1.0-2Troy Dawson 1.0-2Troy Dawson 1.0-1- Changed the file from S01parentlock to K99 parentlock- Fixed the change so that it actually works- Changed firefox and thunderbird path discovory from find to a grep- 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 11599837421.0-9-O2 -g -pipe -march=i386 -mcpu=i686cpiogzip9noarchnoarch-redhat-linux-gnuʊy Vi52 ,?P3070704 $!A>A @5|