diff --git a/1.Base/1.Utilities/0_setup.py b/1.Base/1.Utilities/0_setup.py index bb81a0e5c22a1ff0979c15dd1c7a2921c3c33791..29052bc892606b26ce373eaf7743de9b4a0f2cd6 100644 --- a/1.Base/1.Utilities/0_setup.py +++ b/1.Base/1.Utilities/0_setup.py @@ -39,6 +39,13 @@ alias aptud='sudo apt-get update' 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="${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 = ''