mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-27 13:52:21 +00:00
Compare commits
3 Commits
10d9c86717
...
bb1b2cba15
| Author | SHA1 | Date | |
|---|---|---|---|
| bb1b2cba15 | |||
| 68bd2e6a76 | |||
| 9f6c660cf2 |
10
host/make.sh
10
host/make.sh
@ -82,17 +82,23 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ cp /etc/network/interfaces{,.bak}
|
||||
@ cp /etc/network/interfaces{,.new}
|
||||
|
||||
BRIDGES="$(\
|
||||
cat bridges.tpl \
|
||||
| expandPCTTemplate WAN_PORT ADMIN_PORT)"
|
||||
| expandPCTTemplate \
|
||||
LAN_BRIDGE WAN_BRIDGE ADMIN_BRIDGE \
|
||||
WAN_PORT ADMIN_PORT \
|
||||
HOST_ADMIN_IP GATE_ADMIN_IP)"
|
||||
|
||||
if [ -z "$DRY_RUN" ] ; then
|
||||
# XXX add $BRIDGES to /etc/network/interfaces either before the
|
||||
# source command or at the end...
|
||||
# XXX
|
||||
echo
|
||||
echo "$BRIDGES" >> /etc/network/interfaces.new
|
||||
else
|
||||
echo "$BRIDGES"
|
||||
fi
|
||||
|
||||
if reviewApplyChanges /etc/network/interfaces ; then
|
||||
|
||||
@ -84,8 +84,11 @@ 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 "ss://${PASSWD}@$ENDPOINT:$ENDPOINT_PORT#shadow @ $ENDPOINT"
|
||||
qrencode -t UTF8 "$PROFILE"
|
||||
echo "$PROFILE"
|
||||
echo
|
||||
|
||||
|
||||
# /home/$USER/$SCRIPT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user