lxc-iptag/install.sh

20 lines
400 B
Bash
Executable File

#!/bin/bash
set -xe
# install prerequisites
apt install -y ipcalc shellcheck jq
# iddnstall lxc-iptag
chmod +x lxc-iptag
# configure lxc-iptag systemd
cp lxc-iptag.service /etc/systemd/system/lxc-iptag.service
sed -i "s|/usr/local/bin|$(pwd)|g" /etc/systemd/system/lxc-iptag.service
# start lxc-iptag
systemctl daemon-reload
systemctl enable lxc-iptag.service
systemctl start lxc-iptag.service