mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-28 14:22:25 +00:00
Compare commits
No commits in common. "bb1b2cba154092bd6b0588b0a5aef1b1e032f394" and "10d9c86717e2a4f4337fdb3a19e7239fe7e15791" have entirely different histories.
bb1b2cba15
...
10d9c86717
10
host/make.sh
10
host/make.sh
@ -82,23 +82,17 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ cp /etc/network/interfaces{,.bak}
|
||||
@ cp /etc/network/interfaces{,.new}
|
||||
|
||||
BRIDGES="$(\
|
||||
cat bridges.tpl \
|
||||
| expandPCTTemplate \
|
||||
LAN_BRIDGE WAN_BRIDGE ADMIN_BRIDGE \
|
||||
WAN_PORT ADMIN_PORT \
|
||||
HOST_ADMIN_IP GATE_ADMIN_IP)"
|
||||
| expandPCTTemplate WAN_PORT ADMIN_PORT)"
|
||||
|
||||
if [ -z "$DRY_RUN" ] ; then
|
||||
# XXX add $BRIDGES to /etc/network/interfaces either before the
|
||||
# source command or at the end...
|
||||
# XXX
|
||||
echo "$BRIDGES" >> /etc/network/interfaces.new
|
||||
else
|
||||
echo "$BRIDGES"
|
||||
echo
|
||||
fi
|
||||
|
||||
if reviewApplyChanges /etc/network/interfaces ; then
|
||||
|
||||
@ -84,11 +84,8 @@ chown $USER:$USER $SERVER_CONFIG
|
||||
chmod 600 $SERVER_CONFIG
|
||||
|
||||
# Print profile QRCode...
|
||||
PROFILE="ss://$PASSWD@$ENDPOINT:$ENDPOINT_PORT#shadow @ $ENDPOINT"
|
||||
echo "# Profile:"
|
||||
qrencode -t UTF8 "$PROFILE"
|
||||
echo "$PROFILE"
|
||||
echo
|
||||
qrencode -t UTF8 "ss://${PASSWD}@$ENDPOINT:$ENDPOINT_PORT#shadow @ $ENDPOINT"
|
||||
|
||||
|
||||
# /home/$USER/$SCRIPT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user