SL_firefox_parentlock_fix-1.0-10> A AlpA?E*j$c_aZգ!#]7ۍ} 9ޟ}_>ac6829f7075ecbea2783de84759219cd009c04adޓ EZ&R冟?E*j_X=H},_ "Zzc^E95N|>+?d  # c Y() * ++ I, L- X8 d 9 : @DFX0Y4b;dMeRfWkYl`zxCSL_firefox_parentlock_fix1.010Fixes 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*8yort.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 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 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 if [ -e "$line/K99parentlock" ] ; then rm -f "$line/K99parentlock" fi done if [ -e /usr/bin/mozilla ] ; then sed -i '/S01parentlock/d' /usr/bin/mozilla fi fi :SL_firefox_parentlock_fix-1.0-10.src.rpmSL_firefox_parentlock_fix@JJ/bin/sh/bin/shrpmlib(PayloadFilesHavePrefix)rpmlib(CompressedFileNames)4.0-13.0.4-14.3.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" 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/S01parentlock" 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/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 : #---------------------------------------------------------#firefoxthunderbirdseamonkeyE$KE$KE$KEEEE3E3E >Troy Dawson 1.0-10Troy 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 cleanscript to startscript and stopscript - had thunderbird just do stopscript, everything else do startscript- 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/shyort.fnal.gov 11604183601.0-10-O2 -g -pipe -m64cpiogzip9noarchnoarch-redhat-linux-gnuj2Zb #w?P3070704 $!A>A @5|