Skip to content

Instantly share code, notes, and snippets.

@mekya
Created January 18, 2019 08:12
Show Gist options
  • Save mekya/2d75e2fc947362463d47a53693c7fd51 to your computer and use it in GitHub Desktop.
Save mekya/2d75e2fc947362463d47a53693c7fd51 to your computer and use it in GitHub Desktop.
Prepare AWS Marketplace image of Ant Media Server
#!/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