initial commit of file from CVS for smeserver-nextcloud on Sat Sep 7 20:46:17 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:46:17 +10:00
parent 2a6e3a69f4
commit 992e662760
37 changed files with 1910 additions and 2 deletions

View File

@@ -0,0 +1 @@
url

View File

@@ -0,0 +1 @@
nextcloudadmin

View File

@@ -0,0 +1 @@
nextcloud

View File

@@ -0,0 +1 @@
nextcloud

View File

@@ -0,0 +1 @@
private

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
configuration

View File

@@ -0,0 +1,16 @@
{
my $nextcloud = $DB->get('nextcloud') || $DB->new_record('nextcloud', {type => 'service'});
my $dbpass = $nextcloud->prop('DbPassword') ||
$nextcloud->set_prop('DbPassword', `/usr/bin/openssl rand -base64 40 | /usr/bin/tr -c -d '[:graph:]'`);
my $dbAdminPass = $nextcloud->prop('AdminPassword') ||
$nextcloud->set_prop('AdminPassword', `/usr/bin/openssl rand -base64 40 | /usr/bin/tr -c -d '[:graph:]'`);
if (my $CloudDomain = $DB->get_prop_and_delete('nextcloud', 'CloudDomain')) {
$nextcloud->merge_props('VirtualHost', $CloudDomain);
}
}