.
This commit is contained in:
26
shared/send_ip.sh
Executable file
26
shared/send_ip.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
set -u
|
||||
|
||||
########################################################
|
||||
send_ip () {
|
||||
get_myip
|
||||
${ZSHARED}/shared/tmsg `uname -n` ${MYEXTERNALIP}
|
||||
${ZSHARED}/shared/tmsg `uname -n` ${MYFULLIP}
|
||||
echo "${SERVER_TYPE}: finished $0"
|
||||
}
|
||||
|
||||
main() {
|
||||
echo "--------------Starting $0 -------------------------"
|
||||
if [ -d /static/shared ]
|
||||
then
|
||||
ZSHARED=/static
|
||||
else
|
||||
ZSHARED=/zTools/zShared
|
||||
fi
|
||||
|
||||
. ${ZSHARED}/shared/myshared
|
||||
send_ip
|
||||
echo "--------------Finished $0 -------------------------"
|
||||
}
|
||||
|
||||
main
|
||||
Reference in New Issue
Block a user