initial commit of file from CVS for e-smith-nutUPS on Wed 12 Jul 09:01:20 BST 2023
This commit is contained in:
		
							
								
								
									
										8
									
								
								root/etc/e-smith/db/configuration/migrate/nutPass
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								root/etc/e-smith/db/configuration/migrate/nutPass
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| { | ||||
|     use MIME::Base64 qw(encode_base64); | ||||
|  | ||||
|     my $nutrec = $DB->get('nut') || $DB->new_record('nut', {type => 'service'}); | ||||
|     $nutrec->set_prop('MasterPass', sprintf("%15.0f", int( (1000000000000000) * rand() ))) if not $nutrec->prop('MasterPass'); | ||||
|     $nutrec->set_prop('SlavePass', sprintf("%15.0f", int( (1000000000000000) * rand() ))) if not $nutrec->prop('SlavePass'); | ||||
|     $nutrec->set_prop('AdminPass', sprintf("%15.0f", int( (1000000000000000) * rand() ))) if not $nutrec->prop('AdminPass'); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Brian Read
					Brian Read