#!/bin/sh -e NEW_CONFIG=" ACCESS_TOKEN: \"\" USERNAME: \"partybot\" CHANNEL: 0 MNDPUSER: \"mndp\" " if test -f "$SNAP_DATA"/config.yaml; then echo "existing config found..." else echo "$NEW_CONFIG" > "$SNAP_DATA"/config.yaml fi