upgraded version

This commit is contained in:
Muhammad Ibrahim
2025-09-18 02:09:42 +01:00
parent 98cadb1ff1
commit 5bdd0b5830
6 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
# Configuration
PATCHMON_SERVER="${PATCHMON_SERVER:-http://localhost:3001}"
API_VERSION="v1"
AGENT_VERSION="1.2.3"
AGENT_VERSION="1.2.4"
CONFIG_FILE="/etc/patchmon/agent.conf"
CREDENTIALS_FILE="/etc/patchmon/credentials"
LOG_FILE="/var/log/patchmon-agent.log"

View File

@@ -1,6 +1,6 @@
{
"name": "patchmon-backend",
"version": "1.2.3",
"version": "1.2.4",
"description": "Backend API for Linux Patch Monitoring System",
"main": "src/server.js",
"scripts": {

View File

@@ -14,7 +14,7 @@ const router = express.Router();
router.get('/current', authenticateToken, async (req, res) => {
try {
// For now, return hardcoded version - this should match your agent version
const currentVersion = '1.2.3';
const currentVersion = '1.2.4';
res.json({
version: currentVersion,
@@ -230,7 +230,7 @@ router.get('/check-updates', authenticateToken, requireManageSettings, async (re
);
const latestVersion = latestTag.trim().replace('v', ''); // Remove 'v' prefix
const currentVersion = '1.2.3';
const currentVersion = '1.2.4';
// Simple version comparison (assumes semantic versioning)
const isUpdateAvailable = compareVersions(latestVersion, currentVersion) > 0;

View File

@@ -1,7 +1,7 @@
{
"name": "patchmon-frontend",
"private": true,
"version": "1.2.3",
"version": "1.2.4",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -41,7 +41,7 @@ const Settings = () => {
// Version checking state
const [versionInfo, setVersionInfo] = useState({
currentVersion: '1.2.3',
currentVersion: '1.2.4',
latestVersion: null,
isUpdateAvailable: false,
checking: false,

View File

@@ -1,6 +1,6 @@
{
"name": "patchmon",
"version": "1.2.3",
"version": "1.2.4",
"description": "Linux Patch Monitoring System",
"private": true,
"workspaces": [