Skip to content
Snippets Groups Projects
Commit 2392afd1 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Moved cp to monitor (refs #20919).

parent 2c156397
No related branches found
No related tags found
No related merge requests found
...@@ -112,12 +112,3 @@ alias aptug='sudo apt-get upgrade' ...@@ -112,12 +112,3 @@ alias aptug='sudo apt-get upgrade'
# files # files
alias rmempty='find . -type d -empty -delete' alias rmempty='find . -type d -empty -delete'
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'
# send a file to the dir served by monitor on https
function cp_to_monitor() {
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
echo "Files are available here: https://$url/storage/"
}
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