Update config fix elif

master-b4
Alan Johnston 1 month ago committed by GitHub
parent cd3f81c6dc
commit 46d3689f14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2241,7 +2241,7 @@ elif [ "$1" = "-V" ]; then
if [ -z "$param2" ] ; then
if [ "$param2" = "1" ] || [ "$param2" = "2" ] || [ "$param2" = "3" ] ; then
if [ "$param2" == "1" ] || [ "$param2" == "2" ] || [ "$param2" == "3" ] ; then
sudo sed -i 's/maxcpus=$CPUS/maxcpus=$param2/g'
echo "Setting maxcpus="$param2
@ -2262,12 +2262,12 @@ elif [ "$1" = "-V" ]; then
read NEWCPU
if [ $NEWCPU = "" ] ; then
if [ $NEWCPU == "" ] ; then
echo "No change to maxcpus"
elif [ $NEWCPU = "0" ]
elif [ $NEWCPU == "0" ] ; then
sudo sed -i 's/maxcpus=$CPUS//g'
echo "Removing maxcpus setting"
elif [ $NEWCPU = "1" ] || [ $NEWCPU = "2" ] || [ $NEWCPU = "3" ]
elif [ $NEWCPU == "1" ] || [ $NEWCPU == "2" ] || [ $NEWCPU == "3" ] ; then
sudo sed -i 's/maxcpus=$CPUS/maxcpus=$NEWCPU/g'
echo "Setting maxcpus="$NEWCPU
else

Loading…
Cancel
Save

Powered by TurnKey Linux.