Skip to content

Commit

Permalink
update intall rules
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed May 4, 2020
1 parent 60ebff6 commit b53dfb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Potoo may be verry insecure use it at your own risk !
1. `apt-get install python3-venv`
2. `git clone https://github.com/benasse/potoo.git`
3. `cd potoo`
4. `python3 -m venv venv`
5. `source venv/bin/activate`
4. `python3 -m venv potoo/venv`
5. `source potoo/venv/bin/activate`
6. `pip install -r requirements.txt`
7. `python app.py`

Expand Down
11 changes: 10 additions & 1 deletion wazo/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,28 @@

case "$1" in
build)
exit 0
;;

package)
mkdir -p ${pkgdir}/etc/potoo/
cp -R config.ini ${pkgdir}/etc/potoo/
cp -R potoo ${pkgdir}/usr/local/bin/
cp -R potoo.service /lib/systemd/system/
exit 0
;;

install)
exit 0
systemctl daemon-reload
systemctl enable potoo
;;

uninstall)
exit 0
systemctl disable potoo
systemctl daemon-reload
rm -rf /lib/systemd/system/potoo.service
rm /usr/local/bin/potoo
;;

*)
Expand Down

0 comments on commit b53dfb6

Please sign in to comment.