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';"