diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-10 14:48:25 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-10 14:48:25 -0300 |
commit | 842d9546bb141519862e49ce6a21e498d080768d (patch) | |
tree | 9f41d9794cf35a1c918f5a8e5a484ec278fee1d4 /src/etc | |
parent | 5bc0af4849480e50976cb3712c6a3fbfb6317f2a (diff) | |
parent | 842fc1e2a9f7cd8672773fcfdf7fb14ee2ceea58 (diff) | |
download | pfsense-842d9546bb141519862e49ce6a21e498d080768d.zip pfsense-842d9546bb141519862e49ce6a21e498d080768d.tar.gz |
Merge branch 'master' into bootstrap
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/auth.inc | 2 | ||||
-rwxr-xr-x | src/etc/rc | 24 | ||||
-rwxr-xr-x | src/etc/rc.carpbackup | 2 | ||||
-rwxr-xr-x | src/etc/rc.carpmaster | 2 |
4 files changed, 9 insertions, 21 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 8f4c281..0668493 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -538,7 +538,7 @@ function local_user_set(& $user) { } $un = $lock_account ? "" : "un"; - exec("/usr/sbin/pw {$un}lock {$user_name} -q"); + exec("/usr/sbin/pw {$un}lock {$user_name} -q 2>/dev/null"); conf_mount_ro(); } @@ -166,10 +166,6 @@ elif [ "$PLATFORM" = "nanobsd" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then /bin/mkdir -p /root/var/db/pkg /bin/rm -rf /var/db/pkg /bin/ln -s /root/var/db/pkg/ /var/db/pkg - # Ensure that PBI packages can be persistent across reboots - /bin/mkdir -p /root/var/db/pbi - /bin/rm -rf /var/db/pbi - /bin/ln -s /root/var/db/pbi/ /var/db/pbi else SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1` /sbin/swapon -a 2>/dev/null >/dev/null @@ -179,19 +175,9 @@ else # User must have just disabled RAM disks, move these back into place. /bin/mkdir -p /var/db/pkg /bin/mv /root/var/db/pkg /var/db/pkg - /bin/mkdir -p /var/db/pbi - /bin/mv /root/var/db/pbi /var/db/pbi fi fi -# Copy PBI keys -if ls /usr/local/share/pbi-keys/*.ssl >/dev/null 2>&1; then - if [ ! -d "/var/db/pbi/keys" ]; then - mkdir -p /var/db/pbi/keys - fi - cp -f /usr/local/share/pbi-keys/*.ssl /var/db/pbi/keys -fi - if [ "$PLATFORM" = "cdrom" ] ; then echo -n "Mounting unionfs directories..." /bin/mkdir /tmp/unionfs @@ -280,10 +266,6 @@ if [ ! -d /var/tmp ]; then /bin/mkdir -p /var/tmp fi -if [ ! -d /cf/conf/backup/ ]; then - /bin/mkdir -p /cf/conf/backup/ -fi - set -T trap "echo 'Reboot interrupted'; exit 1" 3 @@ -350,6 +332,12 @@ echo "done." # Recreate capabilities DB /usr/bin/cap_mkdb /etc/login.conf +# Finish update +if [ -f /cf/conf/upgrade_in_progress ]; then + echo "Running second stage of upgrade process..." + /usr/local/sbin/pfsense-upgrade.sh -y +fi + # Run the php.ini setup file and populate # /usr/local/etc/php.ini and /usr/local/lib/php.ini /etc/rc.php_ini_setup 2>/tmp/php_errors.txt diff --git a/src/etc/rc.carpbackup b/src/etc/rc.carpbackup index 0059406..bf27a17 100755 --- a/src/etc/rc.carpbackup +++ b/src/etc/rc.carpbackup @@ -53,7 +53,7 @@ $carp_iface = "{$friendly}_vip{$vhid}"; if(is_array($vips)) { foreach ($vips as $vip) { - $notificationmsg = sprintf('Carp cluster member "{$friendly_descr)(%2$s): {$vip["subnet"]} (%1$s)" has resumed the state "BACKUP" for vhid %s', $argument, $vip['descr'], $vhid); + $notificationmsg = sprintf('Carp cluster member "(%1$s): (%2$s)" has resumed the state "BACKUP" for vhid %3$s', $argument, $friendly_descr, $vhid); notify_via_smtp($notificationmsg); notify_via_growl($notificationmsg); diff --git a/src/etc/rc.carpmaster b/src/etc/rc.carpmaster index 91f3c0e..8413b04 100755 --- a/src/etc/rc.carpmaster +++ b/src/etc/rc.carpmaster @@ -51,7 +51,7 @@ $friendly_descr = convert_friendly_interface_to_friendly_descr($friendly); $vips = link_interface_to_vips($friendly, '', $vhid); $carp_iface = "{$friendly}_vip{$vhid}"; foreach ($vips as $vip) { - $notificationmsg = sprintf('Carp cluster member "{$friendly_descr)(%2$s): {$vip["subnet"]} (%1$s)" has resumed the state "MASTER" for vhid %s', $argument, $vip['descr'], $vhid); + $notificationmsg = sprintf('Carp cluster member "(%1$s): (%2$s)" has resumed the state "MASTER" for vhid %3$s', $argument, $friendly_descr, $vhid); notify_via_smtp($notificationmsg); notify_via_growl($notificationmsg); |