19 lines
666 B
Bash
Executable file
19 lines
666 B
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
BASE_DIR=$(realpath "$(pwd)/$(dirname "$0")/..")
|
|
PUB_KEYS=($(ls ~/.ssh/*.pub | xargs -d '\n' -n 1 basename))
|
|
set -a
|
|
WRAPPER_SCRIPT=$(base64 $BASE_DIR/bash_scripts/ddns-acme-porkbun.sh -w 0)
|
|
DDNS_SCRIPT=$(base64 $BASE_DIR/python_scripts/ddns-porkbun.py -w 0)
|
|
WG_CONF_BASE=$(base64 $BASE_DIR/basic_configs/wg_base.conf -w 0)
|
|
NGINX_CONF=$(base64 $BASE_DIR/basic_configs/nginx-vps/nginx.conf -w 0)
|
|
read -p "VPS Username: " TARGET_USERNAME
|
|
select key_file in $PUB_KEYS
|
|
do
|
|
SSH_PUB_KEY=$(cat ~/.ssh/$key_file)
|
|
break
|
|
done
|
|
set +a
|
|
envsubst < $BASE_DIR/basic_configs/debian-hetzner-init.yaml | xclip -sel c
|
|
read -p 'Input when done'
|
|
echo -n ''| xclip -sel c
|