Minor GUI fixes, revert makewhatis file addition

This commit is contained in:
Jose
2021-02-02 03:36:57 -04:00
parent 91866cadf5
commit 2a52af52eb
6 changed files with 19 additions and 19 deletions
+1
View File
@@ -3,6 +3,7 @@
====================== ======================
Version Description Version Description
1.0.84......Minor GUI fixes, revert makewhatis file addition.
1.0.83......Improve jail/base update, execute fetch/install commands individually. 1.0.83......Improve jail/base update, execute fetch/install commands individually.
1.0.82......Add missing system file to prevent makewhatis not found warning. 1.0.82......Add missing system file to prevent makewhatis not found warning.
1.0.81......Update GUI pages to work with later bastille releases. 1.0.81......Update GUI pages to work with later bastille releases.
-5
View File
@@ -391,11 +391,6 @@ include_files()
install -m 0555 ${SYSTEM_INCLUDE}/sum /usr/bin/sum install -m 0555 ${SYSTEM_INCLUDE}/sum /usr/bin/sum
fi fi
fi fi
if [ ! -f "/usr/bin/makewhatis" ]; then
if [ -f "${SYSTEM_INCLUDE}/makewhatis" ]; then
install -m 0555 ${SYSTEM_INCLUDE}/makewhatis /usr/bin/makewhatis
fi
fi
else else
sysrc -f ${CWDIR}${EXTCONF} VNET_ENABLE="NO" >/dev/null 2>&1 sysrc -f ${CWDIR}${EXTCONF} VNET_ENABLE="NO" >/dev/null 2>&1
fi fi
Binary file not shown.
+8 -6
View File
@@ -318,12 +318,14 @@ if ($_POST):
// Remove obsolete variable. // Remove obsolete variable.
exec("/usr/sbin/sysrc -f $configfile -x {$jail_name_def}_AUTO_START"); exec("/usr/sbin/sysrc -f $configfile -x {$jail_name_def}_AUTO_START");
endif; endif;
$cmd = ("/usr/sbin/sysrc -f $configfile -x {$jail_name}_AUTO_START"); if(exec("/usr/sbin/sysrc -f $configfile -qn {$jail_name}_AUTO_START")):
unset($output,$retval);mwexec2($cmd,$output,$retval); $cmd = ("/usr/sbin/sysrc -f $configfile -x {$jail_name}_AUTO_START");
if($retval == 0): unset($output,$retval);mwexec2($cmd,$output,$retval);
//$savemsg .= gtext("Autostart changed successfully."); if($retval == 0):
else: //$savemsg .= gtext("Autostart changed successfully.");
$input_errors[] = gtext("Failed to disable autostart."); else:
$input_errors[] = gtext("Failed to disable autostart.");
endif;
endif; endif;
endif; endif;
+9 -7
View File
@@ -244,13 +244,15 @@ if($_POST):
$container['jailname'] = $_POST['jailname']; $container['jailname'] = $_POST['jailname'];
$confirm_name = $pconfig['confirmname']; $confirm_name = $pconfig['confirmname'];
$item = $container['jailname']; $item = $container['jailname'];
$cmd = ("/usr/sbin/sysrc -f {$configfile} -x {$item}_AUTO_START"); if(exec("/usr/sbin/sysrc -f $configfile -qn {$item}_AUTO_START")):
unset($output,$retval);mwexec2($cmd,$output,$retval); $cmd = ("/usr/sbin/sysrc -f $configfile -x {$item}_AUTO_START");
if($retval == 0): unset($output,$retval);mwexec2($cmd,$output,$retval);
header('Location: bastille_manager_gui.php'); if($retval == 0):
exit; header('Location: bastille_manager_gui.php');
else: exit;
$input_errors[] = gtext("Failed to set no-auto."); else:
$input_errors[] = gtext("Failed to set no-auto.");
endif;
endif; endif;
endif; endif;
break; break;
+1 -1
View File
@@ -1 +1 @@
1.0.83 1.0.84