-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
26 lines (20 loc) · 1.07 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
26
#!/bin/bash
if [ ! -d "/var/www/microting/eform-service-outer-inner-resource-plugin" ]; then
cd /var/www/microting
su ubuntu -c \
"git clone https://github.com/microting/eform-service-outer-inner-resource-plugin.git -b stable"
fi
cd /var/www/microting/eform-service-outer-inner-resource-plugin
su ubuntu -c \
"dotnet restore ServiceOuterInnerResourcePlugin.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 ServiceOuterInnerResourcePlugin.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-outer-inner-resource-plugin/out /var/www/microting/eform-debian-service/MicrotingService/out/Plugins/ServiceOuterInnerResourcePlugin"
/rabbitmqadmin declare queue name=eform-service-outer-inner-resource-plugin durable=true