Merge branch 'master' of git.calculate.ru:/calculate-client

master3.3
Самоукин Алексей 14 years ago
commit f4e81dacd9

@ -15,3 +15,4 @@ nss_base_group ou=Groups,#-server(unix.dn)-#?one
#?server(samba.dn)!=# #?server(samba.dn)!=#
nss_base_group ou=Groups,#-server(samba.dn)-#?one nss_base_group ou=Groups,#-server(samba.dn)-#?one
#server# #server#

@ -19,3 +19,4 @@ bootparams: files
automount: files ldap automount: files ldap
aliases: files aliases: files

@ -1 +1,2 @@
# Calculate format=ldap append=replace chmod=0644 chown=root:root # Calculate format=ldap append=replace chmod=0644 chown=root:root

@ -20,3 +20,4 @@ bootparams: files
automount: files automount: files
aliases: files aliases: files

@ -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"
} }

Loading…
Cancel
Save