fix install script9

This commit is contained in:
Edmund Tan 2025-07-22 02:35:23 +08:00
parent e1be64747c
commit ea9e3726da
5 changed files with 7 additions and 7 deletions

View File

@ -181,8 +181,8 @@ deploy_ui() {
error_exit "UI files not found. Please run this script from the UI directory."
fi
# Copy main UI files
cp -r public includes assets "$WEB_DIR/" || error_exit "Failed to copy UI files"
# Copy main UI files (assets are now inside public)
cp -r public includes "$WEB_DIR/" || error_exit "Failed to copy UI files"
# Copy root-level PHP files for direct access (when document root is main directory)
if [[ -f "index.php" ]]; then

View File

@ -60,8 +60,8 @@ $systemStatus = $enrollmentManager->getSystemStatus();
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo APP_NAME; ?> - Dashboard</title>
<link rel="stylesheet" href="<?php echo getAssetPath('css/style.css'); ?>">
<link rel="icon" type="image/x-icon" href="<?php echo getAssetPath('images/favicon.ico'); ?>">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
</head>
<body>
<div class="dashboard-container">
@ -305,6 +305,6 @@ $systemStatus = $enrollmentManager->getSystemStatus();
</main>
</div>
<script src="<?php echo getAssetPath('js/app.js'); ?>"></script>
<script src="assets/js/app.js"></script>
</body>
</html>

View File

@ -48,8 +48,8 @@ if (isset($loginError)) {
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo APP_NAME; ?> - Login</title>
<link rel="stylesheet" href="<?php echo getAssetPath('css/style.css'); ?>">
<link rel="icon" type="image/x-icon" href="<?php echo getAssetPath('images/favicon.ico'); ?>">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
</head>
<body>
<div class="login-container">