Add a run.sh function for masked-server