| Line 1... | 
            Line 1... | 
          
          
            | 1 | 
            #!/bin/bash
  | 
            1 | 
            #!/bin/bash
  | 
          
          
            | 2 | 
            # $Id: alcasar-conf.sh 3201 2024-05-28 17:21:34Z rexy $
  | 
            2 | 
            # $Id: alcasar-conf.sh 3206 2024-06-16 22:31:29Z rexy $
  | 
          
          
            | 3 | 
             
  | 
            3 | 
             
  | 
          
          
            | 4 | 
            # alcasar-conf.sh
  | 
            4 | 
            # alcasar-conf.sh
  | 
          
          
            | 5 | 
            # by REXY
  | 
            5 | 
            # by REXY
  | 
          
          
            | 6 | 
            # This script is distributed under the Gnu General Public License (GPL)
  | 
            6 | 
            # This script is distributed under the Gnu General Public License (GPL)
  | 
          
          
            | 7 | 
             
  | 
            7 | 
             
  | 
          
          
            | Line 177... | 
            Line 177... | 
          
          
            | 177 | 
            		[ -e $DIR_UPDATE/gammurc ] && cp -f $DIR_UPDATE/gammurc /etc/ # Gammu conf file
  | 
            177 | 
            		[ -e $DIR_UPDATE/gammurc ] && cp -f $DIR_UPDATE/gammurc /etc/ # Gammu conf file
  | 
          
          
            | 178 | 
            		[ -e $DIR_UPDATE/gammu_smsd_conf ] && cp -f $DIR_UPDATE/gammu_smsd_conf /etc/ # Gammu_smsd conf file
  | 
            178 | 
            		[ -e $DIR_UPDATE/gammu_smsd_conf ] && cp -f $DIR_UPDATE/gammu_smsd_conf /etc/ # Gammu_smsd conf file
  | 
          
          
            | 179 | 
            # Retrieve BL/WL custom files
  | 
            179 | 
            # Retrieve BL/WL custom files
  | 
          
          
            | 180 | 
            		cp -f $DIR_UPDATE/custom_bl/exceptioniplist $DIR_E2G/common/ 
  | 
            180 | 
            		cp -f $DIR_UPDATE/custom_bl/exceptioniplist $DIR_E2G/common/ 
  | 
          
          
            | 181 | 
            		cp -f $DIR_UPDATE/custom_bl/exceptionsitelist $DIR_E2G/group1/
  | 
            181 | 
            		cp -f $DIR_UPDATE/custom_bl/exceptionsitelist $DIR_E2G/group1/
  | 
          
          
            | 182 | 
            		cp -f $DIR_UPDATE/custom_bl/urlregexplist $DIR_E2G/
  | 
            182 | 
            		cp -f $DIR_UPDATE/custom_bl/urlregexplist $DIR_E2G/group1/
  | 
          
          
            | 183 | 
            		cp -f $DIR_UPDATE/custom_bl/bannedurllist $DIR_E2G/group1/
  | 
            183 | 
            		cp -f $DIR_UPDATE/custom_bl/bannedurllist $DIR_E2G/group1/
  | 
          
          
            | 184 | 
            		cp -rf $DIR_UPDATE/custom_bl/ossi-* $DIR_BLACKLIST/ 2>/dev/null
  | 
            184 | 
            		cp -rf $DIR_UPDATE/custom_bl/ossi-* $DIR_BLACKLIST/ 2>/dev/null
  | 
          
          
            | 185 | 
            		chown -R e2guardian:apache $DIR_E2G
  | 
            185 | 
            		chown -R e2guardian:apache $DIR_E2G
  | 
          
          
            | 186 | 
            		chmod -R g+rw $DIR_E2G
  | 
            186 | 
            		chmod -R g+rw $DIR_E2G
  | 
          
          
            | 187 | 
            # Adapt DNS/URL filtering
  | 
            187 | 
            # Adapt DNS/URL filtering
  | 
          
          
            | Line 190... | 
            Line 190... | 
          
          
            | 190 | 
            		$DIR_BIN/alcasar-bl.sh -cat_choice
  | 
            190 | 
            		$DIR_BIN/alcasar-bl.sh -cat_choice
  | 
          
          
            | 191 | 
            		$DIR_BIN/alcasar-bl.sh -reload
  | 
            191 | 
            		$DIR_BIN/alcasar-bl.sh -reload
  | 
          
          
            | 192 | 
            # admin profile update (admin + manager + backup)
  | 
            192 | 
            # admin profile update (admin + manager + backup)
  | 
          
          
            | 193 | 
            		$DIR_BIN/alcasar-profil.sh --list
  | 
            193 | 
            		$DIR_BIN/alcasar-profil.sh --list
  | 
          
          
            | 194 | 
            # Apply changes between versions
  | 
            194 | 
            # Apply changes between versions
  | 
          
          
            | 195 | 
            ##   V5.5 --> V6.0
  | 
            195 | 
            ##   V3.5 --> V3.6
  | 
          
          
            | 196 | 
            		## remove dnsmasq service
  | 
            196 | 
            		## remove dnsmasq service
  | 
          
          
            | 197 | 
            		[ -e /etc/dnsmasq-whitelist.conf ] && rm -f /etc/dnsmasq*
  | 
            197 | 
            		[ -e /etc/dnsmasq-whitelist.conf ] && rm -f /etc/dnsmasq*
  | 
          
          
            | 198 | 
            		[ -e /etc/systemd/system/dnsmasq-whitelist.service ] && rm -f /etc/systemd/system/dnsmasq* && urpme dnsmasq
  | 
            198 | 
            		[ -e /etc/systemd/system/dnsmasq-whitelist.service ] && rm -f /etc/systemd/system/dnsmasq* && urpme dnsmasq
  | 
          
          
            | 199 | 
            # Remove the update folder
  | 
            199 | 
            # Remove the update folder
  | 
          
          
            | 200 | 
            		rm -rf $DIR_UPDATE
  | 
            200 | 
            		rm -rf $DIR_UPDATE
  |