Photoprism: Use -hex for pwd
This commit is contained in:
parent
ad3a0b3764
commit
393a98fe02
1 changed files with 2 additions and 2 deletions
|
@ -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';"
|
||||
|
|
Loading…
Add table
Reference in a new issue