Changeset 2708


Ignore:
Timestamp:
Oct 27, 2016, 2:24:33 PM (3 years ago)
Author:
mabarracus
Message:

Add new settings

Location:
flash-java-insecure-perms/trunk/fuentes/flash-java-insecure-perms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • flash-java-insecure-perms/trunk/fuentes/flash-java-insecure-perms/debian/changelog

    r2700 r2708  
     1flash-java-insecure-perms (0.3) xenial; urgency=medium
     2
     3  * Add new settings
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Thu, 27 Oct 2016 13:52:32 +0200
     6
    17flash-java-insecure-perms (0.2) xenial; urgency=medium
    28
  • flash-java-insecure-perms/trunk/fuentes/flash-java-insecure-perms/usr/bin/flash-java-insecure-perms

    r2700 r2708  
    5353        fi
    5454        for cert in $(find /usr/share/flash-java-insecure-perms/ -name '*.cert');do
    55             certname=${cert%%.cert}
    56             echo Importing into trusted.certs ${certname}.cert
     55            certname=$(basename ${cert%%.cert})
     56            #echo Importing into trusted.certs ${certname}.cert
    5757            for certpath in ${CERTPATHS}; do
    5858                if [ ! -f "/home/$user/${certpath}/trusted.certs" ]; then
     
    9595            sleep 2
    9696        fi
    97         pkill -u $user --signal 9 firefox
     97        $(pkill -u $user --signal 9 firefox >/dev/null 2>/dev/null) >/dev/null 2>/dev/null
    9898        for pref in $(find /home/$user/.mozilla -name 'prefs.js'); do
    9999            sed -i -r 's%.*plugin\.state\.java.*%%' $pref
     
    101101            sed -i -r 's%.*plugins\.click_to_play.*%%' $pref
    102102            sed -i -r 's%.*plugins\.hide_infobar_for_outdated_plugin.*%%' $pref
     103            sed -i -r 's%.*extensions\.blocklist\.enabled.*%%' $pref
    103104            # USE ECHO WHEN THERE ISN'T SOME SETTING INTO FILE
    104105            echo 'user_pref("plugin.state.java",2);' >> $pref
     
    106107            echo 'user_pref("plugins.click_to_play",false);' >> $pref
    107108            echo 'user_pref("plugins.hide_infobar_for_outdated_plugin",true);' >> $pref
     109            echo 'user_pref("extensions.blocklist.enabled",false);' >> $pref
    108110        done
    109111    else
     
    137139            fi
    138140            for cert in $(find /usr/share/flash-java-insecure-perms/ -name '*.cert');do
    139                 certname=${cert%%.cert}
    140                 echo Deleting ${certname}.cert from trusted.certs
     141                certname=$(basename ${cert%%.cert})
     142                #echo Deleting ${certname}.cert from trusted.certs
    141143                for certpath in ${CERTPATHS}; do
    142144                    if [ -f "/home/$user/${certpath}/trusted.certs" ]; then
     
    146148            done
    147149            rm /home/$user/.config/unsec_settings_on
    148             pkill -u $user --signal 9 firefox
     150            $(pkill -u $user --signal 9 firefox  >/dev/null 2>/dev/null) >/dev/null 2>/dev/null
    149151            for pref in $(find /home/$user/.mozilla -name 'prefs.js'); do
    150152                sed -i -r 's%.*plugin\.state\.java.*%user_pref("plugin.state.java",1);%' $pref
     
    152154                sed -i -r 's%.*plugins\.click_to_play.*%user_pref("plugins.click_to_play",true);%' $pref
    153155                sed -i -r 's%.*plugins\.hide_infobar_for_outdated_plugin.*%user_pref("plugins.hide_infobar_for_outdated_plugin",false);%' $pref
    154 
    155                 #echo 'user_pref("plugin.state.java",1)' >> $pref
    156                 #echo 'user_pref("plugin.state.flash",1)' >> $pref
    157                 #echo 'user_pref("plugins.click_to_play",true)' >> $pref
    158                 #echo 'user_pref("plugins.hide_infobar_for_outdated_plugin",false)' >> $pref
     156                sed -i -r 's%.*extensions\.blocklist\.enabled.*%user_pref("extensions.blocklist.enabled",true);%' $pref
    159157            done
    160158        fi
Note: See TracChangeset for help on using the changeset viewer.