partybot/snap/hooks/install

16 lines
233 B
Text
Raw Normal View History

2021-11-20 19:37:10 +00:00
#!/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