partybot/snap/hooks/install
2021-11-20 11:37:10 -08:00

15 lines
233 B
Bash
Executable file

#!/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