+function check_rt_password ()
+{
+ if [[ -z "$PLC_RT_DBPASSWORD" || "$PLC_RT_DBPASSWORD" = "None" ]] ; then
+ # NOTE: this provides a simpler string than uuidgen
+ PLC_RT_DBPASSWORD=$( uuidgen | md5sum - | awk '{print $1}' )
+ plc-config --category=plc_rt --variable=dbpassword --value="$PLC_RT_DBPASSWORD" --save=$local_config $local_config
+ service plc reload
+ CREATED="true"
+ fi
+}
+