Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lamp.sh')
-rw-r--r--lamp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lamp.sh b/lamp.sh
index 90df7f44..d1c17fef 100644
--- a/lamp.sh
+++ b/lamp.sh
@@ -37,7 +37,7 @@ install()
# Randomize mariaDB password
# Suggested by @enoch85 and taken from the nextcloud vm ( https://github.com/nextcloud/vm/blob/master/lib.sh#L46 )
- DBPASSWD=$(tr -dc "a-zA-Z0-9@#*=" < /dev/urandom | fold -w "$(shuf -i 30-35 -n 1)" | head -n 1)
+ DBPASSWD=$( openssl rand -base64 32 )
echo -e "[client]\npassword=$DBPASSWD" > /root/.my.cnf
chmod 600 /root/.my.cnf