Update relay-install.sh

main
denny 2023-09-08 22:17:40 +00:00
parent f6c83708fa
commit c918d2b0d1
1 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,11 @@ set -e
# install dependencies
yum install -y openssl11
yum install lsphp82-pecl-msgpack
LSPHP=$(php-config --version | cut -c -3)
LSPHP="${LSPHP//./}"
yum install "lsphp$LSPHP-pecl-msgpack"
echo "extension = msgpack.so" > $(php-config --ini-dir)/50-msgpack.ini
RELAY_PHP=$(php-config --version | cut -c -3)
@ -26,4 +30,6 @@ sed -i 's/^;\? \?relay.environment =.*/relay.environment = production/' $RELAY_I
sed -i "s/^;\? \?relay.key =.*/relay.key = SJR3-5IHD-CKMYLH-YJRQSY2-8443KZZ-V2LAS6/" $RELAY_INI_DIR/60-relay.ini
## Inject UUID
sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$RELAY_EXT_DIR/relay.so"
sed -i "s/00000000-0000-0000-0000-000000000000/$(cat /proc/sys/kernel/random/uuid)/" "$RELAY_EXT_DIR/relay.so"
sudo service lsws restart