Skip to content
Snippets Groups Projects
Commit 401c162b authored by Florent Thiery's avatar Florent Thiery
Browse files

fix vhost filename used to determine monitor url

parent 27bda2db
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ alias aptug='sudo apt-get upgrade'
# python
alias rmpyc='find . -name *.pyc -type f -delete && find . -name __pycache__ -type d -delete'
function cp_to_monitor() {
url=`grep server_name /etc/nginx/sites-enabled/skyreach.conf | tail -n 1 | cut -f 2 | cut -d " " -f 2`
url=`grep server_name /etc/nginx/sites-enabled/msmonitor.conf | tail -n 1 | cut -f 2 | cut -d " " -f 2`
url="${url::-1}"
echo "cp $1 /home/msmonitor/msmonitor/logs/$1"
cp $1 /home/msmonitor/msmonitor/logs/$1
......
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