* переписана логика восстановления точек монтирования компьютера, введённого в домен, после выхода из ждущего режимаmhiretskiy
parent
600a1df91a
commit
229463e5bd
@ -1 +1 @@
|
||||
# Calculate append=skip merge(sys-apps/calculate-utils)!= merge=sys-apps/portage,app-portage/layman
|
||||
# Calculate append=skip merge(sys-apps/calculate-utils)!= merge=sys-apps/portage,app-portage/layman,sys-auth/elogind
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Calculate exec=/bin/bash exists(/etc/nginx/ssl/nginx.key)==||exists(/etc/nginx/ssl/nginx.crt)==
|
||||
openssl req -x509 -subj "/CN=_" -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt &>/dev/null
|
||||
openssl req -x509 -subj "/CN=_" -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt &>/dev/null
|
||||
|
||||
true
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Calculate chmod=0755 module(client)!=&&client.os_remote_auth!=
|
||||
#!/bin/bash
|
||||
|
||||
DEBUG_LOG=/dev/null
|
||||
|
||||
get_userinfo_data() {
|
||||
/usr/libexec/calculate/cl-variable --value desktop.cl_desktop_online_data
|
||||
}
|
||||
|
||||
remounting() {
|
||||
local userinfo_data="$(get_userinfo_data)"
|
||||
local domain_host="#-client.os_remote_auth-#"
|
||||
OIFS="$IFS"
|
||||
IFS=','
|
||||
for userinfo_row in $userinfo_data
|
||||
do
|
||||
IFS=':'
|
||||
read -a userinfo <<<${userinfo_row}
|
||||
IFS=','
|
||||
local username="${userinfo[0]}"
|
||||
local domainset="${userinfo[3]}"
|
||||
if [[ ${domainset} == 'on' ]]
|
||||
then
|
||||
echo "Umounting remote resources for ${username}" &>>$DEBUG_LOG
|
||||
umount -l /home/${username}/Home
|
||||
umount -l /home/${username}/Share
|
||||
umount -l /home/${username}/FTP
|
||||
|
||||
for COUNT in $( seq 0 32 )
|
||||
do
|
||||
if ping -w4 -i0.5 -c3 $domain_host &>$DEBUG_LOG
|
||||
then
|
||||
cl-client-sync-login --sync off --unmount-on-error off $username &>>$DEBUG_LOG
|
||||
break
|
||||
else
|
||||
sleep 0.5
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
IFS="$OIFS"
|
||||
}
|
||||
|
||||
case $1/$2 in
|
||||
post/*)
|
||||
echo "Handle $1/$2 by module domain" >>$DEBUG_LOG
|
||||
remounting &
|
||||
;;
|
||||
esac
|
@ -0,0 +1 @@
|
||||
# Calculate append=remove name=domain module(client)==||client.os_remote_auth==
|
@ -1 +1 @@
|
||||
# Calculate append=skip module(client)!=&&client.ac_client_configure==on||install.ac_install_live==on&&merge(sys-apps/calculate-utils)!=&&module(client)!=&&ini(merge-calculate.client)==||install.ac_install_live==on&&merge(sys-apps/calculate-utils)!=&&module(client)==&&ini(merge-calculate.client)!= merge=gnome-base/gdm,net-misc/openssh,sys-apps/sysvinit,sys-auth/nss_ldap,sys-libs/glibc,x11-base/xorg-server,x11-misc/lightdm,sys-auth/pambase,app-admin/sudo
|
||||
# Calculate append=skip module(client)!=&&client.ac_client_configure==on||install.ac_install_live==on&&merge(sys-apps/calculate-utils)!=&&module(client)!=&&ini(merge-calculate.client)==||install.ac_install_live==on&&merge(sys-apps/calculate-utils)!=&&module(client)==&&ini(merge-calculate.client)!= merge=gnome-base/gdm,net-misc/openssh,sys-apps/sysvinit,sys-auth/nss_ldap,sys-libs/glibc,x11-base/xorg-server,x11-misc/lightdm,sys-auth/pambase,app-admin/sudo,sys-auth/elogind
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
declare -A CALCULATE_MODULES=(
|
||||
["lib"]="3.6.9.4"
|
||||
["install"]="3.6.9.9"
|
||||
["client"]="3.6.9.8"
|
||||
["desktop"]="3.6.9.2"
|
||||
["update"]="3.6.9.1"
|
||||
)
|
||||
|
||||
inherit calculate-utils-r12
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="amd64"
|
||||
|
Loading…
Reference in new issue