Debian 11 and Ubuntu 22.04 Fixes
This commit is contained in:
parent
5596025da2
commit
5a0f0dc335
3 changed files with 14 additions and 2 deletions
|
@ -2207,6 +2207,9 @@ function installNewPackages(){
|
|||
|
||||
# ifconfig
|
||||
aptgetInstall net-tools
|
||||
|
||||
# Needed for PolicyD
|
||||
aptgetInstall libdbd-mysql-perl
|
||||
}
|
||||
|
||||
function getRidOfExtraPHPMyAdminAlias(){
|
||||
|
|
|
@ -1496,7 +1496,12 @@ function installsql() {
|
|||
echo "extracting and importing sql to mysql:\n";
|
||||
|
||||
# check if ehcp db already exists...
|
||||
$baglanti=@mysqli_connect("localhost", "root", $tmprootpass, "ehcp");
|
||||
$baglanti = false;
|
||||
try
|
||||
{
|
||||
$baglanti=@mysqli_connect("localhost", "root", $tmprootpass, "ehcp");
|
||||
}
|
||||
catch (exception $e){}
|
||||
|
||||
|
||||
if($baglanti){
|
||||
|
@ -1623,7 +1628,10 @@ function installsql() {
|
|||
|
||||
function checkmysqlpass($user,$pass){
|
||||
echo "mysql root pass being checked ...\n";
|
||||
$baglanti=@mysqli_connect("localhost", $user, $pass);
|
||||
$baglanti = false;
|
||||
try{
|
||||
$baglanti=@mysqli_connect("localhost", $user, $pass);
|
||||
}catch (exception $e){}
|
||||
if(!$baglanti){
|
||||
return false;
|
||||
} else return true;
|
||||
|
|
|
@ -2100,6 +2100,7 @@ function installPolicyD(){
|
|||
# install prereqs
|
||||
aptgetInstall libconfig-inifiles-perl
|
||||
aptgetInstall libcache-fastmmap-perl
|
||||
aptgetInstall libdbd-mysql-perl
|
||||
|
||||
#create policyd users
|
||||
policyDUserCheck=$(cat /etc/passwd | grep "cbpolicyd")
|
||||
|
|
Loading…
Reference in a new issue