fix font assets path, logo path, database installation and checks

This commit is contained in:
envoyr
2022-04-20 17:01:25 +02:00
parent d1dda00a1c
commit 8c942178d2
3 changed files with 15 additions and 6 deletions

View File

@@ -333,7 +333,7 @@ class FroxlorInstall
} }
// check if we have unrecoverable errors // check if we have unrecoverable errors
if ($fatal_fail || $another_fail || $this->_abort) { if ($fatal_fail || isset($another_fail) && $another_fail || $this->_abort) {
// D'oh // D'oh
$_die = true; $_die = true;
$message = $this->_lng['install']['testing_mysql_fail']; $message = $this->_lng['install']['testing_mysql_fail'];
@@ -775,7 +775,10 @@ class FroxlorInstall
$mysql_access_host_array[] = '127.0.0.1'; $mysql_access_host_array[] = '127.0.0.1';
} }
$mysql_access_host_array[] = $this->_data['serverip']; if (!in_array($this->_data['serverip'], $mysql_access_host_array)) {
$mysql_access_host_array[] = $this->_data['serverip'];
}
foreach ($mysql_access_host_array as $mysql_access_host) { foreach ($mysql_access_host_array as $mysql_access_host) {
$frox_db = str_replace('`', '', $this->_data['mysql_database']); $frox_db = str_replace('`', '', $this->_data['mysql_database']);
$this->_grantDbPrivilegesTo($db_root, $frox_db, $this->_data['mysql_unpriv_user'], $this->_data['mysql_unpriv_pass'], $mysql_access_host); $this->_grantDbPrivilegesTo($db_root, $frox_db, $this->_data['mysql_unpriv_user'], $this->_data['mysql_unpriv_pass'], $mysql_access_host);

View File

@@ -2,7 +2,7 @@
{% block content %} {% block content %}
<div class="container max-w-lg flex align-content-center mt-5"> <div class="container max-w-lg flex align-content-center mt-5">
<img src="templates/Sparkle/assets/img/logo.png" alt="Froxlor Server Management Panel" /> <img src="templates/Froxlor/assets/img/logo.png" alt="Froxlor Server Management Panel" />
<div class="row gx-0 rounded shadow bg-primary text-white mt-5"> <div class="row gx-0 rounded shadow bg-primary text-white mt-5">
<div class="col p-5 rounded-start"> <div class="col p-5 rounded-start">

View File

@@ -3,6 +3,12 @@
let mix = require('laravel-mix'); let mix = require('laravel-mix');
mix mix
.js('templates/Froxlor/src/js/main.js', 'templates/Froxlor/assets/js') .setPublicPath('')
.sass('templates/Froxlor/src/scss/main.scss', 'templates/Froxlor/assets/css') .options({
.sass('templates/Froxlor/src/scss/dark.scss', 'templates/Froxlor/assets/css'); fileLoaderDirs: {
fonts: 'templates/Froxlor/assets/fonts'
}
})
.js('templates/Froxlor/src/js/main.js', 'templates/Froxlor/assets/js')
.sass('templates/Froxlor/src/scss/main.scss', 'templates/Froxlor/assets/css')
.sass('templates/Froxlor/src/scss/dark.scss', 'templates/Froxlor/assets/css');