initial commit of file from CVS for smeserver-tt-rss on Sat Sep 7 21:09:52 AEST 2024
This commit is contained in:
12
root/etc/e-smith/db/configuration/migrate/tt-rss-database
Normal file
12
root/etc/e-smith/db/configuration/migrate/tt-rss-database
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
|
||||
my $rec = $DB->get('tt-rss') || $DB->new_record('tt-rss', { type => 'webapp' });
|
||||
my $pw = $rec->prop('DbPassword');
|
||||
|
||||
if (not $pw){
|
||||
$pw = `/usr/bin/openssl rand -base64 60 | tr -c -d '[:graph:]'`;
|
||||
chomp($pw);
|
||||
$rec->set_prop('DbPassword', $pw);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user