external ip
This commit is contained in:
parent
50abe42d21
commit
13ea2ae548
|
@ -1790,7 +1790,7 @@ function install_zeronet {
|
|||
echo 'User=zeronet' >> /etc/systemd/system/zeronet.service
|
||||
echo 'Group=zeronet' >> /etc/systemd/system/zeronet.service
|
||||
echo 'WorkingDirectory=/opt/zeronet' >> /etc/systemd/system/zeronet.service
|
||||
echo 'ExecStart=/usr/bin/python zeronet.py' >> /etc/systemd/system/zeronet.service
|
||||
echo "ExecStart=/usr/bin/python zeronet.py --ip_external ${DEFAULT_DOMAIN_NAME}.local" >> /etc/systemd/system/zeronet.service
|
||||
echo '' >> /etc/systemd/system/zeronet.service
|
||||
echo 'TimeoutSec=300' >> /etc/systemd/system/zeronet.service
|
||||
echo '' >> /etc/systemd/system/zeronet.service
|
||||
|
|
|
@ -317,7 +317,7 @@ zeronetavahi
|
|||
|
||||
existing_zeronet=$(ps aux | grep zeronet | wc -l)
|
||||
if [ $existing_zeronet -lt "2" ]; then
|
||||
python zeronet.py &
|
||||
python zeronet.py --ip_external $(hostname).local &
|
||||
fi
|
||||
|
||||
if which firefox > /dev/null; then
|
||||
|
|
Loading…
Reference in New Issue