Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ domp4s
extrascript
dotimelapse
.config.backup
ukmon.ini

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
8 changes: 8 additions & 0 deletions refreshTools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ git stash
git pull
git stash apply

if [ ! -f $here/ukmon.ini ] ; then
echo "# config data for this station" > $here/ukmon.ini
echo "export LOCATION=NOTCONFIGURED" >> $here/ukmon.ini
echo "export UKMONHELPER=3.8.65.98" >> $here/ukmon.ini
echo "export UKMONKEY=~/.ssh/ukmon" >> $here/ukmon.ini
fi

if [ -f $here/.firstrun ] ; then
if [[ "$LOCATION" != "NOTCONFIGURED" && "$LOCATION" != "" ]] ; then
if [ $(file $here/ukmon.ini | grep CRLF | wc -l) -ne 0 ] ; then
Expand Down Expand Up @@ -57,6 +64,7 @@ else
read -p "Press any key to continue"
fi
fi

if [ $(grep ukmonPost ~/source/RMS/.config | wc -l) -eq 0 ] ; then
python -c 'import ukmonPostProc as pp ; pp.installUkmonFeed();'
fi
Expand Down
4 changes: 2 additions & 2 deletions ukmonPostProc.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def rmsExternal(cap_dir, arch_dir, config):

uploadToArchive.uploadToArchive(arch_dir, log)

os.remove(rebootlockfile)

# do not remote reboot lock file if running another script
# os.remove(rebootlockfile)
try:
with open(os.path.join(myloc, 'extrascript'),'r') as extraf:
extrascript=extraf.readline().strip()
Expand Down