Install aaPanel succesfully, but when install application failed on Proxmox 7 LXC:
/www/server/panel/install/public.sh: line 64: 1.1059e+10-1.1059e+10: syntax error: invalid arithmetic operator (error token is ".1059e+10-1.1059e+10")
When I take a look at the code of line 64:
58 GetCpuStat(){
59 time1=$(cat /proc/stat |grep 'cpu ')
60 sleep 1
61 time2=$(cat /proc/stat |grep 'cpu ')
62 cpuTime1=$(echo ${time1}|awk '{print $2+$3+$4+$5+$6+$7+$8}')
63 cpuTime2=$(echo ${time2}|awk '{print $2+$3+$4+$5+$6+$7+$8}')
64 runTime=$((${cpuTime2}-${cpuTime1}))
Proxmox 6:
# cat /proc/stat |grep 'cpu '|awk '{print $2+$3+$4+$5+$6+$7+$8}'
3615566284
Promox 7:
# cat /proc/stat |grep 'cpu '|awk '{print $2+$3+$4+$5+$6+$7+$8}'
1.10592e+10
To fix this issue I just set runtTime to 3.
Note: I am using Ubuntu 20.04