mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fix for rc.local startup
This commit is contained in:
parent
2c634e9a0e
commit
f7cc1b9b62
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ user=${1-admin}
|
||||||
ip_status=${2-shared}
|
ip_status=${2-shared}
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
|
source /etc/profile.d/vesta.sh
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ is_object_valid 'user' 'USER' "$user" "$user"
|
||||||
|
|
||||||
# Get list of ip addresses
|
# Get list of ip addresses
|
||||||
ip_list=$(/sbin/ifconfig | grep 'inet addr:' | cut -f 2 -d : | \
|
ip_list=$(/sbin/ifconfig | grep 'inet addr:' | cut -f 2 -d : | \
|
||||||
cut -f 1 -d ' '| grep -v 127.0.0.1)
|
cut -f 1 -d ' '| grep -v 127.0.0.1 | grep -v '0.0.0.')
|
||||||
ip_num=$(echo "$ip_list" | wc -l)
|
ip_num=$(echo "$ip_list" | wc -l)
|
||||||
|
|
||||||
# WorkAround for Amazon stop/start issue
|
# WorkAround for Amazon stop/start issue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue