initial commit of file from CVS for smeserver-tt-rss on Sat Sep 7 21:09:52 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/configuration/defaults/tt-rss/DbName
Normal file
1
root/etc/e-smith/db/configuration/defaults/tt-rss/DbName
Normal file
@@ -0,0 +1 @@
|
||||
rssdb
|
1
root/etc/e-smith/db/configuration/defaults/tt-rss/DbUser
Normal file
1
root/etc/e-smith/db/configuration/defaults/tt-rss/DbUser
Normal file
@@ -0,0 +1 @@
|
||||
rssuser
|
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/tt-rss/access
Normal file
1
root/etc/e-smith/db/configuration/defaults/tt-rss/access
Normal file
@@ -0,0 +1 @@
|
||||
private
|
1
root/etc/e-smith/db/configuration/defaults/tt-rss/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/tt-rss/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/tt-rss/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/tt-rss/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
tt-rss backend (systemd service)
|
1
root/etc/e-smith/db/configuration/defaults/ttrss/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/ttrss/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/ttrss/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/ttrss/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
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