diff --git a/lxc/install.sh b/lxc/install.sh index fd6e7b4..738fe35 100755 --- a/lxc/install.sh +++ b/lxc/install.sh @@ -26,6 +26,7 @@ log() { printf '[install] %s\n' "$*"; } log "installing packages" apk add --no-cache \ bash \ + nano \ wireguard-tools \ wireguard-tools-openrc \ iptables \ @@ -35,6 +36,12 @@ apk add --no-cache \ conntrack-tools \ openrc +# Default editor → nano (for visudo, crontab -e, etc.) +if ! grep -q '^export EDITOR=nano' /etc/profile 2>/dev/null; then + echo 'export EDITOR=nano' >> /etc/profile + echo 'export VISUAL=nano' >> /etc/profile +fi + # --- /dev/net/tun sanity ---------------------------------------------------- if [[ ! -e /dev/net/tun ]]; then cat >&2 <<'EOF'