106 |
{ |
{ |
107 |
local serial="$1" |
local serial="$1" |
108 |
|
|
109 |
# now setup some empty database entries if the does not exist |
# now setup some empty database entries if they do not exist |
110 |
auth=$(mysqldo "select vnc from client_auth where serial=${serial};") |
auth=$(mysqldo "select vnc from client_auth where serial=${serial};") |
111 |
if [[ -z ${auth} ]] || [[ ${auth} = NULL ]] |
if [[ -z ${auth} ]] || [[ ${auth} = NULL ]] |
112 |
then |
then |
113 |
decho "set empty vnc pass" |
decho "set empty vnc pass" |
114 |
import_resource client_auth "${serial}" "vnc" "" |
import_resource client_auth "${serial}" "vnc" "" |
115 |
fi |
fi |
116 |
} |
} |