external ip

This commit is contained in:
Bob Mottram 2015-09-04 11:22:45 +01:00
parent 50abe42d21
commit 13ea2ae548
2 changed files with 2 additions and 2 deletions

View File

@ -1790,7 +1790,7 @@ function install_zeronet {
echo 'User=zeronet' >> /etc/systemd/system/zeronet.service echo 'User=zeronet' >> /etc/systemd/system/zeronet.service
echo 'Group=zeronet' >> /etc/systemd/system/zeronet.service echo 'Group=zeronet' >> /etc/systemd/system/zeronet.service
echo 'WorkingDirectory=/opt/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 '' >> /etc/systemd/system/zeronet.service
echo 'TimeoutSec=300' >> /etc/systemd/system/zeronet.service echo 'TimeoutSec=300' >> /etc/systemd/system/zeronet.service
echo '' >> /etc/systemd/system/zeronet.service echo '' >> /etc/systemd/system/zeronet.service

View File

@ -317,7 +317,7 @@ zeronetavahi
existing_zeronet=$(ps aux | grep zeronet | wc -l) existing_zeronet=$(ps aux | grep zeronet | wc -l)
if [ $existing_zeronet -lt "2" ]; then if [ $existing_zeronet -lt "2" ]; then
python zeronet.py & python zeronet.py --ip_external $(hostname).local &
fi fi
if which firefox > /dev/null; then if which firefox > /dev/null; then