Skip to content

Commit

Permalink
Update install_dev.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 27, 2021
1 parent 29fbbb6 commit 344f060
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions dagger-server/scripts/install_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,37 @@
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin


TAGRT_DIR=/usr/local/imail_dev
TAGRT_DIR=/usr/local/dagger_dev
mkdir -p $TAGRT_DIR
cd $TAGRT_DIR


if [ ! -d $TAGRT_DIR/imail ]; then
git clone https://github.com/midoks/imail
cd $TAGRT_DIR/imail
if [ ! -d $TAGRT_DIR/dagger ]; then
git clone https://github.com/midoks/dagger
cd $TAGRT_DIR/dagger
else
cd $TAGRT_DIR/imail
git pull https://github.com/midoks/imail
cd $TAGRT_DIR/dagger
git pull https://github.com/midoks/dagger
fi

cd $TAGRT_DIR/dagger/dagger-server

go mod tidy
go mod vendor


rm -rf imail
rm -rf dagger
go build ./


cd $TAGRT_DIR/imail/scripts
cd $TAGRT_DIR/dagger/scripts

sh make.sh

systemctl daemon-reload

service imail restart
service dagger restart

cd $TAGRT_DIR/imail && ./imail -v
cd $TAGRT_DIR/dagger && ./dagger -v


0 comments on commit 344f060

Please sign in to comment.