-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
25 lines (20 loc) · 1.04 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
if [ ! -d "/var/www/microting/eform-service-trashinspection-plugin" ]; then
cd /var/www/microting
su ubuntu -c \
"git clone https://github.com/microting/eform-service-trashinspection-plugin.git -b stable"
fi
cd /var/www/microting/eform-service-trashinspection-plugin
su ubuntu -c \
"dotnet restore ServiceTrashInspectionPlugin.sln"
echo "################## START GITVERSION ##################"
export GITVERSION=`git describe --abbrev=0 --tags | cut -d "v" -f 2`
echo $GITVERSION
echo "################## END GITVERSION ##################"
su ubuntu -c \
"dotnet publish ServiceTrashInspectionPlugin.sln -o out /p:Version=$GITVERSION --runtime linux-x64 --configuration Release"
su ubuntu -c \
"mkdir -p /var/www/microting/eform-debian-service/MicrotingService/out/Plugins/"
su ubuntu -c \
"cp -av /var/www/microting/eform-service-trashinspection-plugin/out /var/www/microting/eform-debian-service/MicrotingService/out/Plugins/ServiceTrashInspectionPlugin"
/rabbitmqadmin declare queue name=eform-service-trashinspection-plugin durable=true