deb: remove old unused scripts

pull/96/head
Jake McGinty 2021-05-26 15:12:37 +09:00
parent 9524019c55
commit 3766d88c83
2 changed files with 0 additions and 44 deletions

View File

@ -1,29 +0,0 @@
#!/usr/bin/env bash
info() {
TERM=${TERM:-dumb} echo -e "$(tput setaf 4)- $@$(tput sgr0)" 1>&2
}
cmd() {
echo "[#] $*" >&2
"$@"
}
if [ $# -lt 2 ]; then
echo "Usage: $0 bootstrap_conf interface_name"
exit 1
fi
set -e
conf="$1"
name="$2"
info "installing wireguard config file."
cmd sudo mv $conf /etc/wireguard/$name.conf
cmd sudo chown root:root /etc/wireguard/$name.conf
cmd sudo chmod 600 /etc/wireguard/$name.conf
info "enabling innernet service."
cmd sudo systemctl enable innernet@$name
cmd sudo systemctl start innernet@$name

View File

@ -1,15 +0,0 @@
#!/usr/bin/env bash
set -e
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $SCRIPT_DIR/../client
if ! cargo install --list | grep cargo-deb > /dev/null; then
cargo install cargo-deb
fi
set -x
cargo build --release
cargo deb --package client --no-build