diff --git a/copySM2.sh b/copySM2.sh index e0d949b..1d52876 100755 --- a/copySM2.sh +++ b/copySM2.sh @@ -5,7 +5,10 @@ if [ $# -ne 3 ]; then exit 1 fi export REMOTE=/home/brianr/$1/usr/share/smanager -cd ~/clients/SM2/SM2Gen/venv/Targets/$3 +mkdir -p $REMOTE +export LOCAL=~/clients/SM2/SM2Gen/venv +export SME11IP=$1.thereadclan.me.uk +cd $LOCAL/Targets/$3 echo `pwd` # controller file name is just capitalised cont_file=$(echo "$3" | awk '{ @@ -30,7 +33,7 @@ find . -maxdepth 1 -type f -name "[!_]*\.ep" | xargs -I% bash -c 'cp -fv % $REM mkdir -p $REMOTE/lib/SrvMngr/I18N/Modules/$3 cp -fv *.lex $REMOTE/lib/SrvMngr/I18N/Modules/$3 rm -f $REMOTE/lib/SrvMngr/I18N/Modules/$3/*.pm -ssh -p 1234 root@$1.thereadclan.me.uk 'signal-event smanager-refresh' +ssh -p 1234 root@$SME11IP 'signal-event smanager-refresh' exit 0