rework random string generator

This commit is contained in:
LinuxSquare 2024-12-28 13:31:51 +01:00
parent c6507398ad
commit 5c73fdd60b
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Maintainer: LinuxSquare <linuxsquare@noveria.org> # Maintainer: LinuxSquare <linuxsquare@noveria.org>
pkgname=pterodactyl-panel-compose pkgname=pterodactyl-panel-compose
pkgver=1.11.10 pkgver=1.11.10
pkgrel=6 pkgrel=7
pkgdesc="The Pterodactyl Panel" pkgdesc="The Pterodactyl Panel"
arch="x86_64" arch="x86_64"
url="https://pterodactyl.io/" url="https://pterodactyl.io/"

View file

@ -4,7 +4,7 @@ SHARE_DIR=$(PREFIX)/share
APP_TIMEZONE=$(shell readlink /etc/localtime | awk -F'/' '{print $$(NF-1)"/"$$(NF)}') APP_TIMEZONE=$(shell readlink /etc/localtime | awk -F'/' '{print $$(NF-1)"/"$$(NF)}')
MYSQL_PASSWORD=$(shell head /dev/urandom | tr -dc 'A-Za-z0-9!?,.$%&+-:<=>@_' | head -c32) MYSQL_PASSWORD=$(shell head /dev/urandom | tr -dc 'A-Za-z0-9!?,.$%&+-:<=>@_' | head -c32)
MYSQL_ROOT_PASSWORD=$(shell head /dev/urandom | tr -dc 'A-Za-z0-9!?,.$%&+-:<=>@_' | head -c32) MYSQL_ROOT_PASSWORD=$(shell head /dev/urandom | tr -dc 'A-Za-z0-9!?,.$%&+-:<=>@_' | head -c32)
RANDOM_STRING=$(shell tr -dc '0-9!#&'\''+,-./:;<=>?@\^_|~' </dev/urandom | head -c20) RANDOM_STRING=$(shell cat /dev/urandom | tr -dc '0-9!+&,.-' | fold -w 20 | head -n 1)
install: install-compose install-service install: install-compose install-service