mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Modify return message
This commit is contained in:
parent
08011100cd
commit
83ff3198aa
@ -37,16 +37,18 @@ fi
|
|||||||
if [ -n "$server_port" ]; then
|
if [ -n "$server_port" ]; then
|
||||||
echo "Changing lighttpd server.port to $server_port ..."
|
echo "Changing lighttpd server.port to $server_port ..."
|
||||||
sed -i "s/^\(server\.port *= *\)[0-9]*/\1$server_port/g" "$lighttpd_conf"
|
sed -i "s/^\(server\.port *= *\)[0-9]*/\1$server_port/g" "$lighttpd_conf"
|
||||||
echo "RaspAP will now be available at $host:$server_port"
|
echo "RaspAP will now be available at port $server_port"
|
||||||
echo "Restart lighttpd for new setting to take effect"
|
conf_change=1
|
||||||
fi
|
fi
|
||||||
if [ -n "$server_bind" ]; then
|
if [ -n "$server_bind" ]; then
|
||||||
echo "Changing lighttpd server.bind to $server_bind ..."
|
echo "Changing lighttpd server.bind to $server_bind ..."
|
||||||
grep -q 'server.bind' "$lighttpd_conf" && \
|
grep -q 'server.bind' "$lighttpd_conf" && \
|
||||||
sed -i "s/^\(server\.bind.*= \)\".*\"*/\1\"$server_bind\"/g" "$lighttpd_conf" || \
|
sed -i "s/^\(server\.bind.*= \)\".*\"*/\1\"$server_bind\"/g" "$lighttpd_conf" || \
|
||||||
printf "server.bind \t\t\t\t = \"$server_bind\"" >> "$lighttpd_conf"
|
printf "server.bind \t\t\t\t = \"$server_bind\"" >> "$lighttpd_conf"
|
||||||
echo "RaspAP will now be available at $server_bind"
|
echo "RaspAP will now be available at address $server_bind"
|
||||||
echo "Restart lighttpd for new setting to take effect"
|
conf_change=1
|
||||||
|
fi
|
||||||
|
if [ "$conf_change" == 1 ]; then
|
||||||
|
echo "Restart lighttpd for new settings to take effect"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user