created dependencies text file to explain what is required. created CardReaderService.conf file for supervisor configuration.
16 lines
496 B
Bash
16 lines
496 B
Bash
#!/bin/sh
|
|
echo "Installing dependencies"
|
|
apt-get install mono-complete pcscd supervisor -y
|
|
echo "Installing service configuration file"
|
|
cp CardReaderService.conf /etc/supervisor/conf.d/
|
|
echo "Installing applicaton"
|
|
mkdir /home/osboxes/CardReaderService
|
|
cp CardReaderServiceHost/bin/Debug/*.* /home/osboxes/CardReaderService
|
|
cd /home/osboxes/CardReaderService
|
|
rm *.pdb
|
|
rm *.vshost.exe
|
|
rm *.vshost.exe.config
|
|
rm *.vshost.exe.manifest
|
|
echo "Starting application........."
|
|
service supervisor restart
|