Skip to content

Commit

Permalink
fix: systemctl dont use enable --now mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cutelua committed Dec 3, 2021
1 parent ea75f60 commit 24b2abb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ sh mtg-dist.bin mtg-2.0.1-linux-amd64.tar.gz
# Uninstall

```
systemctl disable --now mtg
systemctl disable mtg
systemctl stop mtg
rm -f /usr/local/bin/mtg /etc/systemd/system/mtg.service /etc/mtg.toml
```

Expand Down
3 changes: 2 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ install -v -m644 $__dir/conf/mtg.service /etc/systemd/system/
install -v -m644 $__dir/conf/mtg.toml /etc/

systemctl daemon-reload
systemctl enable --now mtg
systemctl enable mtg
systemctl start mtg

yellow "=================================================="
green "> Installation success. Wait for service to load ..."
Expand Down

0 comments on commit 24b2abb

Please sign in to comment.