|
|
|
@ -17,14 +17,14 @@ env-update
|
|
|
|
|
source /etc/profile
|
|
|
|
|
source /usr/share/calculate-2.2/xdm/functions
|
|
|
|
|
|
|
|
|
|
if [ -e '/usr/bin/cl-createhome' ];
|
|
|
|
|
if [ -e '/usr/bin/cl-desktop' ];
|
|
|
|
|
then
|
|
|
|
|
ERRORLOG=`/usr/bin/cl-createhome --progress --color=never $USER 2>&1`
|
|
|
|
|
ERRORLOG=`/usr/bin/cl-desktop --progress --color=never $USER 2>&1`
|
|
|
|
|
# при неудачном выполнении, сгенерируем ошибку
|
|
|
|
|
if [ "$?" -gt "0" ];
|
|
|
|
|
then
|
|
|
|
|
echo "$ERRORLOG" >> $FILE_LOG
|
|
|
|
|
xmes cl-createhome "$ERRORLOG"
|
|
|
|
|
xmes cl-desktop "$ERRORLOG"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|