Fix run script, replace registration secret
add watch-js to README.md to start the dev environment.
This commit is contained in:
parent
9cf28154cf
commit
23e4f0c974
|
@ -32,6 +32,7 @@ Starting the development environment with your container runtime should be as ea
|
|||
|
||||
```shell
|
||||
./run.sh
|
||||
make watch-js
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class MatrixService
|
|||
private $client;
|
||||
|
||||
/** @var string */
|
||||
private $registrationSecret = "~d9fJpPKDZIV67A7=tPCvok:=fTBLV;MFf=9FRxtAazW@-GwSo";
|
||||
private $registrationSecret = "oyYh_iEJ7Aim.iB+ye.Xk;Gl3iHFab5*8K,zv~IulT85P=c-38";
|
||||
|
||||
/**
|
||||
* @throws MatrixRequestException
|
||||
|
|
4
run.sh
4
run.sh
|
@ -62,7 +62,7 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ $SYNAPSE_DATA_VOLUME_EXISTS == "true" ]]; then
|
||||
if [[ $SYNAPSE_DATA_VOLUME_EXISTS == "false" ]]; then
|
||||
$CONTAINER_RUNTIME run --rm \
|
||||
--name=synapse \
|
||||
--hostname synapse \
|
||||
|
@ -75,7 +75,7 @@ if [[ $SYNAPSE_DATA_VOLUME_EXISTS == "true" ]]; then
|
|||
fi
|
||||
|
||||
LOCAL_SYNAPSE_DATA_PATH="$($CONTAINER_RUNTIME volume inspect --format "{{.Mountpoint}}" synapse-data)"
|
||||
SED_ARGS=(-i 's|macaroon_secret_key: .*|macaroon_secret_key: "~d9fJpPKDZIV67A7=tPCvok:=fTBLV;MFf=9FRxtAazW@-GwSo"|' "$LOCAL_SYNAPSE_DATA_PATH/homeserver.yaml")
|
||||
SED_ARGS=(-i 's|registration_shared_secret: .*|registration_shared_secret: "oyYh_iEJ7Aim.iB+ye.Xk;Gl3iHFab5*8K,zv~IulT85P=c-38"|' "$LOCAL_SYNAPSE_DATA_PATH/homeserver.yaml")
|
||||
if [[ $(id -u) -eq 0 || $RUNTIME_IS_PODMAN != "true" ]]; then
|
||||
sed ${SED_ARGS[@]}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue