mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
Merge branch 'master' into next
Conflicts: lfs/netsnmpd
This commit is contained in:
4
config/backup/includes/cyrus-imapd
Normal file
4
config/backup/includes/cyrus-imapd
Normal file
@@ -0,0 +1,4 @@
|
||||
/usr/sieve
|
||||
/var/imap
|
||||
/var/ipfire/cyrusimap
|
||||
/var/log/imap
|
||||
@@ -92,6 +92,7 @@ srv/web/ipfire/html/blob.gif
|
||||
srv/web/ipfire/html/clwarn.cgi
|
||||
srv/web/ipfire/html/dial.cgi
|
||||
srv/web/ipfire/html/favicon.ico
|
||||
#srv/web/ipfire/html/graphs
|
||||
#srv/web/ipfire/html/images
|
||||
srv/web/ipfire/html/images/IPFire.png
|
||||
srv/web/ipfire/html/images/add.gif
|
||||
|
||||
@@ -75,15 +75,17 @@ chown nobody.nobody \
|
||||
/var/run/ovpnserver.log
|
||||
|
||||
# Update OpenVPN/collectd configuration
|
||||
files=`find /var/ipfire/ovpn/n2nconf/ -type d`
|
||||
for i in $files;
|
||||
do
|
||||
if ! grep -q "status-version" $i/${i##*/}.conf; then
|
||||
echo "# Logfile" >> $i/${i##*/}.conf
|
||||
echo "status-version 1" >> $i/${i##*/}.conf
|
||||
for i in /var/ipfire/ovpn/n2nconf/*/*.conf; do
|
||||
name="${i##*/}"
|
||||
name="${name%*.conf}"
|
||||
|
||||
if ! grep -qE "^status-version" ${i}; then
|
||||
echo "# Logfile" >> ${i}
|
||||
echo "status-version 1" >> ${i}
|
||||
fi
|
||||
if ! grep -q "status " $i/${i##*/}.conf; then
|
||||
echo "status /var/run/openvpn/${i##*/}-n2n 10" >> $i/${i##*/}.conf
|
||||
|
||||
if ! grep -qE "^status " ${i}; then
|
||||
echo "status /var/run/openvpn/${name}-n2n 10" >> ${i}
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ etc/sudoers
|
||||
etc/sysconfig/firewall.local
|
||||
etc/sysconfig/modules
|
||||
etc/sysconfig/rc.local
|
||||
etc/udev/rules.d/30-persistent-network.rules
|
||||
srv/web/ipfire/html/proxy.pac
|
||||
var/ipfire/firewall/geoipblock
|
||||
var/ipfire/fwhosts/custmgeoipgrp
|
||||
|
||||
@@ -5,6 +5,8 @@ etc/rc.d/init.d/network-trigger
|
||||
etc/rc.d/init.d/networking/functions.network
|
||||
etc/rc.d/init.d/networking/red.up/99-geoip-database
|
||||
etc/rc.d/rcsysinit.d/S90network-trigger
|
||||
opt/pakfire/pakfire
|
||||
opt/pakfire/lib/functions.pl
|
||||
srv/web/ipfire/cgi-bin/country.cgi
|
||||
srv/web/ipfire/cgi-bin/ddns.cgi
|
||||
srv/web/ipfire/cgi-bin/firewall.cgi
|
||||
|
||||
1
config/rootfiles/core/90/filelists/openldap
Symbolic link
1
config/rootfiles/core/90/filelists/openldap
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/openldap
|
||||
@@ -208,6 +208,13 @@ sudo -u nobody /srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
# Update Language cache
|
||||
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
||||
|
||||
# Remove old udev configuration
|
||||
rm -vf /etc/udev/rules.d/30-persistent-network.rules
|
||||
|
||||
# Remove pids from dhcp client because it hang at normal shutdown
|
||||
# so let the sysvinit kill it
|
||||
rm -f /run/dhcpcd-*.pid
|
||||
|
||||
#
|
||||
# Start services
|
||||
#
|
||||
@@ -218,22 +225,9 @@ if [ `grep "ENABLED=on" /var/ipfire/vpn/settings` ]; then
|
||||
/etc/init.d/ipsec start
|
||||
fi
|
||||
|
||||
case "$(uname -m)" in
|
||||
i?86)
|
||||
case "$(find_device "/")" in
|
||||
xvd* )
|
||||
echo Skip remove grub2 files, because pygrub fail.
|
||||
rm -f /boot/grub/*
|
||||
echo config will recreated by linux-pae install.
|
||||
;;
|
||||
* )
|
||||
#
|
||||
# Update to GRUB2 config
|
||||
#
|
||||
grub-mkconfig > /boot/grub/grub.cfg
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
if [ -e /boot/grub/grub.cfg ]; then
|
||||
grub-mkconfig > /boot/grub/grub.cfg
|
||||
fi
|
||||
|
||||
# Upadate Kernel version uEnv.txt
|
||||
if [ -e /boot/uEnv.txt ]; then
|
||||
@@ -247,7 +241,7 @@ fi
|
||||
|
||||
|
||||
# Force (re)install pae kernel if pae is supported
|
||||
rm -rf /opt/pakfire/db/*/meta-linux-pae
|
||||
rm -rf /opt/pakfire/db/installed/meta-linux-pae
|
||||
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
|
||||
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
|
||||
BOOTSPACE=`df /boot -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
|
||||
@@ -258,9 +252,7 @@ if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
|
||||
echo "Name: linux-pae" > /opt/pakfire/db/installed/meta-linux-pae
|
||||
echo "ProgVersion: 0" >> /opt/pakfire/db/installed/meta-linux-pae
|
||||
echo "Release: 0" >> /opt/pakfire/db/installed/meta-linux-pae
|
||||
echo "Name: linux-pae" > /opt/pakfire/db/meta/meta-linux-pae
|
||||
echo "ProgVersion: 0" >> /opt/pakfire/db/meta/meta-linux-pae
|
||||
echo "Release: 0" >> /opt/pakfire/db/meta/meta-linux-pae
|
||||
# rm -f /opt/pakfire/db/meta/meta-linux-pae 2>&1 > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -146,6 +146,7 @@ var/imap/msg
|
||||
var/imap/proc
|
||||
var/imap/ptclient
|
||||
var/imap/socket
|
||||
var/ipfire/backup/addons/includes/cyrus-imapd
|
||||
var/ipfire/cyrusimap
|
||||
var/ipfire/cyrusimap/cyrus.conf
|
||||
var/ipfire/cyrusimap/imapd.conf
|
||||
|
||||
Reference in New Issue
Block a user