mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-04 22:13:21 +00:00
upgraded version
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# Configuration
|
# Configuration
|
||||||
PATCHMON_SERVER="${PATCHMON_SERVER:-http://localhost:3001}"
|
PATCHMON_SERVER="${PATCHMON_SERVER:-http://localhost:3001}"
|
||||||
API_VERSION="v1"
|
API_VERSION="v1"
|
||||||
AGENT_VERSION="1.2.3"
|
AGENT_VERSION="1.2.4"
|
||||||
CONFIG_FILE="/etc/patchmon/agent.conf"
|
CONFIG_FILE="/etc/patchmon/agent.conf"
|
||||||
CREDENTIALS_FILE="/etc/patchmon/credentials"
|
CREDENTIALS_FILE="/etc/patchmon/credentials"
|
||||||
LOG_FILE="/var/log/patchmon-agent.log"
|
LOG_FILE="/var/log/patchmon-agent.log"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "patchmon-backend",
|
"name": "patchmon-backend",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"description": "Backend API for Linux Patch Monitoring System",
|
"description": "Backend API for Linux Patch Monitoring System",
|
||||||
"main": "src/server.js",
|
"main": "src/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const router = express.Router();
|
|||||||
router.get('/current', authenticateToken, async (req, res) => {
|
router.get('/current', authenticateToken, async (req, res) => {
|
||||||
try {
|
try {
|
||||||
// For now, return hardcoded version - this should match your agent version
|
// For now, return hardcoded version - this should match your agent version
|
||||||
const currentVersion = '1.2.3';
|
const currentVersion = '1.2.4';
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
version: currentVersion,
|
version: currentVersion,
|
||||||
@@ -230,7 +230,7 @@ router.get('/check-updates', authenticateToken, requireManageSettings, async (re
|
|||||||
);
|
);
|
||||||
|
|
||||||
const latestVersion = latestTag.trim().replace('v', ''); // Remove 'v' prefix
|
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)
|
// Simple version comparison (assumes semantic versioning)
|
||||||
const isUpdateAvailable = compareVersions(latestVersion, currentVersion) > 0;
|
const isUpdateAvailable = compareVersions(latestVersion, currentVersion) > 0;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "patchmon-frontend",
|
"name": "patchmon-frontend",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const Settings = () => {
|
|||||||
|
|
||||||
// Version checking state
|
// Version checking state
|
||||||
const [versionInfo, setVersionInfo] = useState({
|
const [versionInfo, setVersionInfo] = useState({
|
||||||
currentVersion: '1.2.3',
|
currentVersion: '1.2.4',
|
||||||
latestVersion: null,
|
latestVersion: null,
|
||||||
isUpdateAvailable: false,
|
isUpdateAvailable: false,
|
||||||
checking: false,
|
checking: false,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "patchmon",
|
"name": "patchmon",
|
||||||
"version": "1.2.3",
|
"version": "1.2.4",
|
||||||
"description": "Linux Patch Monitoring System",
|
"description": "Linux Patch Monitoring System",
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
|
|||||||
Reference in New Issue
Block a user