fmt: Remove sudo cause pve login as root by default

This commit is contained in:
sang 2024-12-05 10:30:43 +08:00
parent 4f76ba3208
commit c58a9afa6d
2 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ lxc-iptag is a simple script to add ip tags to LXC containers.
## 1. Installation
```sh
curl -sL https://github.com/gitsang/lxc-iptag/raw/main/install.sh | sudo bash
curl -sL https://github.com/gitsang/lxc-iptag/raw/main/install.sh | bash
```
This script will:
@ -20,8 +20,8 @@ This script will:
### 1.1 Update
```sh
sudo curl -sSL https://raw.githubusercontent.com/gitsang/lxc-iptag/main/lxc-iptag -o /usr/local/bin/lxc-iptag && sudo chmod +x /usr/local/bin/lxc-iptag
sudo systemctl restart lxc-iptag.service
curl -sSL https://raw.githubusercontent.com/gitsang/lxc-iptag/main/lxc-iptag -o /usr/local/bin/lxc-iptag && chmod +x /usr/local/bin/lxc-iptag
systemctl restart lxc-iptag.service
```
This script will only update the `lxc-iptag` executable script

View File

@ -3,7 +3,7 @@
set -xe
# install prerequisites
sudo apt install -y ipcalc
apt install -y ipcalc
# install lxc-iptag
curl -sSL https://raw.githubusercontent.com/gitsang/lxc-iptag/main/lxc-iptag -o /usr/local/bin/lxc-iptag && chmod +x /usr/local/bin/lxc-iptag
@ -13,6 +13,6 @@ curl -sSL https://raw.githubusercontent.com/gitsang/lxc-iptag/main/lxc-iptag.con
curl -sSL https://raw.githubusercontent.com/gitsang/lxc-iptag/main/lxc-iptag.service -o /lib/systemd/system/lxc-iptag.service
# start lxc-iptag
sudo systemctl daemon-reload
sudo systemctl enable lxc-iptag.service
sudo systemctl start lxc-iptag.service
systemctl daemon-reload
systemctl enable lxc-iptag.service
systemctl start lxc-iptag.service