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

add cp_to_monitor helper function

parent a6a46d00
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,13 @@ alias aptud='sudo apt-get update' ...@@ -39,6 +39,13 @@ alias aptud='sudo apt-get update'
alias aptug='sudo apt-get upgrade' alias aptug='sudo apt-get upgrade'
# python # python
alias rmpyc='find . -name *.pyc -type f -delete && find . -name __pycache__ -type d -delete' 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="${url::-1}"
echo "cp $1 /home/msmonitor/msmonitor/logs/$1"
cp $1 /home/msmonitor/msmonitor/logs/$1
echo "Files are available here: https://$url/storage/"
}
''' '''
bashrc_path = os.path.expanduser('~/.bashrc') bashrc_path = os.path.expanduser('~/.bashrc')
bashrc = '' bashrc = ''
......
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