Fix Makefile
This commit is contained in:
parent
5ea8e5121a
commit
a50296c3fa
2 changed files with 3 additions and 2 deletions
2
APKBUILD
2
APKBUILD
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: LinuxSquare <linuxsquare@noveria.org>
|
||||
pkgname=pterodactyl-panel-compose
|
||||
pkgver=1.11.10
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="The Pterodactyl Panel"
|
||||
arch="x86_64"
|
||||
url="https://pterodactyl.io/"
|
||||
|
|
3
Makefile
3
Makefile
|
@ -4,6 +4,7 @@ SHARE_DIR=$(PREFIX)/share
|
|||
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_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)
|
||||
|
||||
install: install-compose install-service
|
||||
|
||||
|
@ -13,7 +14,7 @@ install-compose:
|
|||
sed -i "s|%MYSQL_PASSWORD%|$(MYSQL_PASSWORD)|g" "$(DESTDIR)$(SHARE_DIR)/pterodactyl-panel/pterodactyl-panel.sh"
|
||||
sed -i "s|%MYSQL_ROOT_PASSWORD%|$(MYSQL_ROOT_PASSWORD)|g" "$(DESTDIR)$(SHARE_DIR)/pterodactyl-panel/pterodactyl-panel.sh"
|
||||
sed -i "s|%SHARE_DIR%|$(SHARE_DIR)/pterodactyl-panel|g" "$(DESTDIR)$(SHARE_DIR)/pterodactyl-panel/pterodactyl-panel.sh"
|
||||
sed -i "s|%RANDOM_STRING%|$(shell tr -dc '0-9!#&'\''+,-./:;<=>?@\^_|~' </dev/urandom | head -c 20)|g" "$(DESTDIR)/$(SHARE_DIR)/pterodactyl-panel/pterodactyl-panel.sh"
|
||||
sed -i "s|%RANDOM_STRING%|$(RANDOM_STRING)|g" "$(DESTDIR)/$(SHARE_DIR)/pterodactyl-panel/pterodactyl-panel.sh"
|
||||
|
||||
install-service:
|
||||
install -vDm 755 pterodactyl-panel-compose.initd.in "$(DESTDIR)/etc/init.d/pterodactyl-panel-compose"
|
||||
|
|
Loading…
Reference in a new issue