Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复 apt 报错以及没有静默同意导致的删除失败 #115

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pvetools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1705,8 +1705,7 @@ Sensors driver not found.
if [ $bver -gt 7 ];then
cat << EOF > /usr/bin/s.sh
curC=\`cat /proc/cpuinfo|grep MHz|awk 'NR==1{print \$4}'\`
max=\`cat /proc/cpuinfo|grep GHz|awk -F "@" 'NR==1{print \$2}'|sed 's/GHz//g'|sed 's/\ //g'\`
maxC=\`echo "\$max * 1000"|bc -l\`
maxC=\$(lscpu | grep 'max MHz' | awk '{print\$4}')
minC=\`lscpu|grep 'min MHz'|awk '{print \$4}'\`
c="\"CPU-MHz\":\""\$curC"\",\"CPU-max-MHz\":\""\$maxC"\",\"CPU-min-MHz\":\""\$minC"\""
r="{"\$c"}"
Expand Down Expand Up @@ -1910,7 +1909,7 @@ No sensors found.
rm /usr/bin/s.sh
#cp /etc/pvetools/pvemanagerlib.js $js
#cp /etc/pvetools/Nodes.pm $pm
apt install --reinstall pve-manager
apt-get install --reinstall pve-manager -y
systemctl restart pveproxy
echo 50
echo 100
Expand Down