fix permissions

This commit is contained in:
Sebastian
2023-01-05 16:59:33 +01:00
parent a52023aa5c
commit 3ed5dba101
2 changed files with 2 additions and 0 deletions

24
optimism/scripts/dtl-start.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -eou
# Setting both endpoints doesn't hurt
export DATA_TRANSPORT_LAYER__L1_RPC_ENDPOINT=$DATA_TRANSPORT_LAYER__RPC_ENDPOINT
export DATA_TRANSPORT_LAYER__L2_RPC_ENDPOINT=$DATA_TRANSPORT_LAYER__RPC_ENDPOINT
# Set the backend depending on given sync source
export DATA_TRANSPORT_LAYER__DEFAULT_BACKEND=$SYNC_SOURCE
export DATA_TRANSPORT_LAYER__L1_GAS_PRICE_BACKEND=$SYNC_SOURCE
# Also tell the DTL to sync from the right place
if [ $SYNC_SOURCE == "l1" ]; then
export DATA_TRANSPORT_LAYER__SYNC_FROM_L1=true
export DATA_TRANSPORT_LAYER__SYNC_FROM_L2=false
else
export DATA_TRANSPORT_LAYER__SYNC_FROM_L1=false
export DATA_TRANSPORT_LAYER__SYNC_FROM_L2=true
fi
# Run the DTL
exec node \
dist/src/services/run.js \
$@