Subversion Repositories ALCASAR

Rev

Rev 1917 | Rev 1925 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1917 Rev 1924
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1917 2016-06-01 09:35:09Z franck $ 
2
#  $Id: alcasar.sh 1924 2016-06-04 12:52:49Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1629... Line 1629...
1629
	if [ "$mode" != "update" ]; then
1629
	if [ "$mode" != "update" ]; then
1630
		$DIR_DEST_BIN/alcasar-bl.sh --adapt
1630
		$DIR_DEST_BIN/alcasar-bl.sh --adapt
1631
# enable the default categories
1631
# enable the default categories
1632
		$DIR_DEST_BIN/alcasar-bl.sh --cat_choice
1632
		$DIR_DEST_BIN/alcasar-bl.sh --cat_choice
1633
# creation of the custom BL and WL categorie named "ossi" (for domain names & ip only)
1633
# creation of the custom BL and WL categorie named "ossi" (for domain names & ip only)
1634
		touch $DIR_DEST_SHARE/dnsmasq-bl/ossi.conf
1634
		mkdir $DIR_DG/lists/blacklists/ossi-bl $DIR_DG/lists/blacklists/ossi-wl
1635
		touch $DIR_DEST_SHARE/dnsmasq-wl/ossi.conf
1635
		touch $DIR_DG/lists/blacklists/ossi-bl/domain $DIR_DG/lists/blacklists/ossi-wl/domain
1636
		touch $DIR_DEST_SHARE/iptables-bl/ossi
-
 
1637
		touch $DIR_DEST_SHARE/iptables-wl/ossi
-
 
1638
# add custom ALCASAR BL files (TOR)
1636
# add custom ALCASAR BL files (TOR)
-
 
1637
		mkdir $DIR_DG/lists/blacklists/ossi-tor_node
1639
		mv $DIR_CONF/ossi-tor_node_ip  $DIR_DEST_SHARE/iptables-bl/
1638
		mv $DIR_CONF/ossi-tor_node  $DIR_DG/lists/blacklists/ossi-tor_node/domain
1640
		chown -R dansguardian:apache $DIR_DG $DIR_DEST_SHARE
1639
		chown -R dansguardian:apache $DIR_DG $DIR_DEST_SHARE
1641
		chmod -R g+rw $DIR_DG $DIR_DEST_SHARE
1640
		chmod -R g+rw $DIR_DG $DIR_DEST_SHARE
1642
	fi
1641
	fi
1643
}
1642
}
1644
 
1643