projects
/
networtool-web.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix bug
[networtool-web.git]
/
intall.sh
1
#!/bin/bash -xe
2
3
DIR="/usr/local/networktool-web"
4
SERVICE="networktool-web.service"
5
6
rm -rf ${DIR} || true
7
mkdir ${DIR}
8
cp -r package script views web.py ${DIR}
9
10
cp ${SERVICE} /lib/systemd/system/
11
systemctl stop ${SERVICE} || true
12
systemctl enable ${SERVICE}
13
systemctl start ${SERVICE}
14
15
echo "Done"