From 393a98fe02fdc19fe4085c93ec4cb2deb47cb5b5 Mon Sep 17 00:00:00 2001 From: Benoit Date: Wed, 12 Feb 2025 21:42:55 +0900 Subject: [PATCH] Photoprism: Use -hex for pwd --- cfg/jobs/photoprism.run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg/jobs/photoprism.run b/cfg/jobs/photoprism.run index 36c39d0..5a47d74 100755 --- a/cfg/jobs/photoprism.run +++ b/cfg/jobs/photoprism.run @@ -28,8 +28,8 @@ incus exec "$CNAME" -- apt install -y /tmp/photoprism.deb syncthing incus exec "$CNAME" -- groupadd photoprism incus exec "$CNAME" -- useradd -g photoprism -d /opt/photoprism -s /bin/false photoprism incus exec "$CNAME" -- chown -R photoprism:photoprism /opt/photoprism -MARIADB_PASS=$(openssl rand -base64 32) -PHOTOPRISM_PASS=$(openssl rand -base64 32) +MARIADB_PASS=$(openssl rand -hex 32) +PHOTOPRISM_PASS=$(openssl rand -hex 32) incus exec "$CNAME" -- mysql -e "CREATE DATABASE photoprism;" incus exec "$CNAME" -- mysql -e "CREATE USER 'photoprism'@'localhost' IDENTIFIED BY '$MARIADB_PASS';" incus exec "$CNAME" -- mysql -e "GRANT ALL PRIVILEGES ON photoprism.* TO 'photoprism'@'localhost';"