|
|
@ -26,16 +26,16 @@ start() {
|
|
|
|
# Mount remote Samba filesystems.
|
|
|
|
# Mount remote Samba filesystems.
|
|
|
|
ebegin "Mounting domain resources"
|
|
|
|
ebegin "Mounting domain resources"
|
|
|
|
# Identifing domain server by env file
|
|
|
|
# Identifing domain server by env file
|
|
|
|
local env_file=/var/calculate/calculate.env
|
|
|
|
local env_file=/var/calculate/calculate2.env
|
|
|
|
if [[ -f $env_file ]]
|
|
|
|
if [[ -f $env_file ]]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
local SERVER=$( sed -rn 's/^cl_remote_host\s*=\s*(\S+)$/\1/p' $env_file )
|
|
|
|
local SERVER=$( sed -rn 's/^cl_remote_host\s*=\s*(\S+)\s*$/\1/p' $env_file )
|
|
|
|
for COUNT in $( seq 0 20 )
|
|
|
|
for COUNT in $( seq 0 20 )
|
|
|
|
do
|
|
|
|
do
|
|
|
|
ping -w2 -c1 $SERVER &>/dev/null && break || sleep 1
|
|
|
|
ping -w2 -c1 $SERVER &>/dev/null && break || sleep 1
|
|
|
|
done
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
cl-client --mount
|
|
|
|
cl-client-2.2 --mount
|
|
|
|
eend $? "Some samba remote resources to mount"
|
|
|
|
eend $? "Some samba remote resources to mount"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|