mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 12:16:53 +00:00
updata
This commit is contained in:
parent
179d8f092c
commit
7d68767ec4
@ -22,12 +22,18 @@ echo 'Acquire::Languages "none";' | sudo tee /etc/apt/apt.conf.d/99-disable-tran
|
|||||||
`
|
`
|
||||||
|
|
||||||
const timeSyncCode = `
|
const timeSyncCode = `
|
||||||
# Set system timezone automatically based on IP
|
# Set timezone (replace 'America/New_York' with your timezone)
|
||||||
IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
|
sudo timedatectl set-timezone America/New_York
|
||||||
TIMEZONE=$(curl -s "https://ipapi.co/${IP}/timezone")
|
|
||||||
timedatectl set-timezone "$TIMEZONE"
|
# Enable automatic time synchronization
|
||||||
timedatectl set-ntp true
|
sudo timedatectl set-ntp true
|
||||||
`
|
|
||||||
|
# Note: Automatic timezone setting based on IP is commented out to avoid errors
|
||||||
|
# To set timezone automatically based on IP, you would need to run:
|
||||||
|
# IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
|
||||||
|
# TIMEZONE=$(curl -s "https://ipapi.co/$IP/timezone")
|
||||||
|
# sudo timedatectl set-timezone "$TIMEZONE"
|
||||||
|
`
|
||||||
|
|
||||||
const updateUpgradeCode = `
|
const updateUpgradeCode = `
|
||||||
# Disable enterprise repos
|
# Disable enterprise repos
|
||||||
|
@ -204,6 +204,7 @@ EOF
|
|||||||
sudo sysctl -p /etc/sysctl.d/99-memory.conf
|
sudo sysctl -p /etc/sysctl.d/99-memory.conf
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto px-4 py-8">
|
<div className="container mx-auto px-4 py-8">
|
||||||
<div className="flex items-center mb-6">
|
<div className="flex items-center mb-6">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user