Fix CardReaderService.conf for supervisorctl to ensure correct pathing as per install directories. Correct MessageLogger to ensure it appends log messages, previously overwrote the logs. Add manual Reset event in Service1.cs to ensure that we exit when we stop. Add configurationmanager/config property, to allow DataCenterHelper to pull updated configurations at runtime. Add TimeStamp to CardDataPost object #103
24 lines
611 B
Bash
24 lines
611 B
Bash
#!/bin/sh
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "No arguments supplied, supply the base path"
|
|
fi
|
|
echo "Installing dependencies"
|
|
apt-get install mono-complete pcscd supervisor -y
|
|
|
|
echo "Modifying supervisor conf file"
|
|
sed -i "s|/DIRECTORYTOSET|$1|g" CardReaderService.conf
|
|
|
|
echo "Installing service configuration file"
|
|
cp CardReaderService.conf /etc/supervisor/conf.d/
|
|
|
|
echo "Installing applicaton"
|
|
mkdir $1/CardReaderService
|
|
cp ./*.* $1/CardReaderService
|
|
cd $1/CardReaderService
|
|
rm *.pdb
|
|
rm *.vshost.exe
|
|
rm *.vshost.exe.config
|
|
rm *.vshost.exe.manifest
|
|
echo "Starting application........."
|
|
service supervisor restart |