#!/bin/bash

# log file info
LOGPATH=/var/log/astguiclient
LOGFILE=$LOGPATH/ubuntu-vici-install.log

# helper script versions
UPDATERV=0.01

echo "Initializing Installer"

mkdir -p $LOGPATH

cd /tmp

wget http://download.vicidial.com/ubuntu/ubuntu-vici-updater-$UPDATERV.sh 2>> $LOGFILE >> $LOGFILE
wget http://download.vicidial.com/ubuntu/spinner 2>> $LOGFILE >> $LOGFILE


chmod 755 ubuntu-vici-updater-$UPDATERV.sh 2>> $LOGFILE >> $LOGFILE
chmod 755 spinner  2>> $LOGFILE >> $LOGFILE

./ubuntu-vici-updater-$UPDATERV.sh $LOGFILE 

rm ubuntu-vici-updater-$UPDATERV.sh 2>> $LOGFILE >> $LOGFILE
rm spinner  2>> $LOGFILE >> $LOGFILE

