Update buildvm.sh

This commit is contained in:
spiritLHLS 2023-04-10 14:56:14 +08:00 committed by GitHub
parent 4ad30003f7
commit d7e77ea7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,5 +80,6 @@ if [ ! -f "/etc/iptables/rules.v4" ]; then
touch /etc/iptables/rules.v4
fi
iptables-save > /etc/iptables/rules.v4
service netfilter-persistent restart
echo "$vm_num $user $password $core $memory $disk $sshn $web1_port $web2_port $port_first $port_last $system" >> "vm${vm_num}"
cat "vm${vm_num}"