2019-10-03 23:14:53 +08:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
mkdir /usr/local/ba
|
|
|
|
mkdir /usr/local/ba/admin
|
|
|
|
mkdir /usr/local/ba/client
|
|
|
|
|
|
|
|
cd ~/
|
|
|
|
git clone https://gitee.com/LongbowEnterprise/BootstrapAdmin.git
|
|
|
|
|
|
|
|
cp ~/BootstrapAdmin/src/admin/Bootstrap.Admin/appsettings.json /usr/local/admin
|
|
|
|
cp ~/BootstrapAdmin/src/admin/Bootstrap.Admin/BootstrapAdmin.db /usr/local/admin
|
|
|
|
cp ~/BootstrapAdmin/src/client/Bootstrap.Client/appsettings.json /usr/local/client
|
|
|
|
|
2019-10-04 10:57:00 +08:00
|
|
|
cp ~/BootstrapAdmin/services/* /usr/lib/systemd/system
|
2019-10-03 23:14:53 +08:00
|
|
|
systemctl enable ba.admin
|
|
|
|
systemctl enable ba.client
|
|
|
|
systemctl enable nginx
|