Created
January 18, 2019 08:12
-
-
Save mekya/2d75e2fc947362463d47a53693c7fd51 to your computer and use it in GitHub Desktop.
Prepare AWS Marketplace image of Ant Media Server
This file contains hidden or 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
#!/bin/bash | |
#get the init script | |
sudo wget https://gist.githubusercontent.com/mekya/f8b85706e2ccbc24d6cfea29d64a042e/raw/init.sh -O /usr/local/antmedia/conf/init.sh | |
sudo chmod 755 /usr/local/antmedia/conf/init.sh | |
#get the antmedia file | |
sudo wget https://gist.githubusercontent.com/mekya/c58351d865aca77b3e00c50656c8482e/raw/antmedia -O /etc/init.d/antmedia | |
sudo systemctl daemon-reload | |
sudo rm -rf /home/ubuntu/.ssh/ | |
sudo rm -rf /root/.ssh | |
sudo service antmedia stop | |
sudo rm /usr/local/antmedia/conf/instanceId | |
sudo rm /usr/local/antmedia/conf/initialized | |
sudo rm /usr/local/antmedia/*.db | |
sudo rm /usr/local/antmedia/*.db.wal.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment