Skip to content
Snippets Groups Projects
Commit d6a384eb authored by Bob Mottram's avatar Bob Mottram
Browse files

ssb script filename

parent 1cd4ed23
No related branches found
No related tags found
No related merge requests found
......@@ -161,15 +161,16 @@ if [ -d /etc/scuttlebot/notification ]; then
SSB_NOTIFY=$(grep 'SSB_NOTIFY=' "/root/${PROJECT_NAME}.cfg" | head -n 1 | sed 's|SSB_NOTIFY=||g')
if [[ "$SSB_NOTIFY" == '@'* && "$SSB_NOTIFY" == *'.ed25519' ]]; then
cat <<EOF > /usr/bin/send_scuttlebutt_notification
cat <<EOF > /etc/scuttlebot/send_scuttlebutt_notification
#!/bin/bash
cd /etc/scuttlebot/notification || exit 1
./ssb-example-pm.js $SSB_NOTIFY "$MESSAGE"
exit 0
EOF
chmod +x /usr/bin/install_scuttlebutt_notification
su -c '/usr/bin/install_scuttlebutt_notification' - scuttlebot
rm /usr/bin/install_scuttlebutt_notification
chmod +x /etc/scuttlebot/send_scuttlebutt_notification
chown scuttlebot:scuttlebot /etc/scuttlebot/send_scuttlebutt_notification
su -c '/etc/scuttlebot/send_scuttlebutt_notification' - scuttlebot
rm /etc/scuttlebot/send_scuttlebutt_notification
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment