FlexitimeTracker/CardReaderService/install.sh
chris.watts90@outlook.com 1395172142 created install and uninstall shell scripts - tested on ubuntu.
created dependencies text file to explain what is required.
created CardReaderService.conf file for supervisor configuration.
2018-05-30 13:39:44 +01:00

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