-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbe36b0
commit 6c9f470
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# copy following lines to /etc/init/matter-push-proxy.conf | ||
|
||
# start on runlevel [2345] | ||
# stop on runlevel [016] | ||
# respawn | ||
# chdir /home/ubuntu/matter-push-proxy | ||
# setuid ubuntu | ||
# console output | ||
# exec bin/push-proxy | logger | ||
|
||
sudo stop matter-push-proxy | ||
|
||
|
||
rm -f matter-push-proxy.tar.gz | ||
rm -rf ~/matter-push-proxy | ||
|
||
wget https://github.com/mattermost/push-proxy/releases/download/v0.1.0/matter-push-proxy.tar.gz | ||
|
||
mkdir -p ~/matter-push-proxy | ||
|
||
tar -C ~/ -xzf matter-push-proxy.tar.gz | ||
|
||
cp config.json ~/matter-push-proxy/config/config.json | ||
|
||
sudo start matter-push-proxy | ||
|
||
sleep 10 | ||
|
||
curl localhost:8066 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters