Commit 94330f9b authored by Romain Maliach-Auguste's avatar Romain Maliach-Auguste 🌵
Browse files

A bash script can "exit", not "return"

parent 3566f567
#!/bin/bash
if [ ! -f "/APIKEY.txt" ] ; then >&2 echo "/APIKEY.txt must contain the etherpad instance's API key. Copy (or mount) it. It is generated by etherpad-lite at startup and placed in its root (usually /opt/etherpad-lite/APIKEY.txt). Aborting."; return 1; fi
if [ ! -f "/APIKEY.txt" ] ; then >&2 echo "/APIKEY.txt must contain the etherpad instance's API key. Copy (or mount) it. It is generated by etherpad-lite at startup and placed in its root (usually /opt/etherpad-lite/APIKEY.txt). Aborting."; exit 1; fi
export CF=/etc/delete_after_delay.yml
echo 'instanceD:' > $CF
echo " key: $(cat /APIKEY.txt)" >> $CF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment