mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
c18d373ff7
...
119b1c0791
Author | SHA1 | Date |
---|---|---|
|
119b1c0791 | |
|
43f92cee14 | |
|
41109f0a8d |
|
@ -432,6 +432,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export tz=$timezone
|
||||
export SERV=$SERVER
|
||||
export DISABLEIPV6=$DISABLEIP6
|
||||
export APPLICATION=$APP
|
||||
|
|
|
@ -66,6 +66,11 @@ if [ "$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | c
|
|||
echo -e " 🖧 Check Network Settings"
|
||||
exit 1
|
||||
fi
|
||||
cat <<EOF >/etc/apk/repositories
|
||||
https://dl-cdn.alpinelinux.org/alpine/latest-stable/main
|
||||
https://dl-cdn.alpinelinux.org/alpine/latest-stable/community
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||
EOF
|
||||
msg_ok "Set up Container OS"
|
||||
msg_ok "Network Connected: ${BL}$(ip addr show | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1 | tail -n1)${CL}"
|
||||
|
||||
|
@ -102,9 +107,10 @@ $STD apk add mc
|
|||
msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Installing Vaultwarden"
|
||||
$STD apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing vaultwarden
|
||||
$STD apk add --no-cache vaultwarden
|
||||
cat <<EOF >/etc/conf.d/vaultwarden
|
||||
export DATA_FOLDER=/var/lib/vaultwarden
|
||||
export WEB_VAULT_FOLDER=/var/lib/vaultwarden/web-vault
|
||||
export WEB_VAULT_ENABLED=true
|
||||
export ADMIN_TOKEN=$(openssl rand -base64 48)
|
||||
export ROCKET_ADDRESS=0.0.0.0
|
||||
|
@ -112,6 +118,15 @@ EOF
|
|||
$STD rc-service vaultwarden start
|
||||
$STD rc-update add vaultwarden default
|
||||
msg_ok "Installed Vaultwarden"
|
||||
|
||||
msg_info "Downloading Web-Vault"
|
||||
WEBVAULT=$(curl -s https://api.github.com/repos/dani-garcia/bw_web_builds/releases/latest |
|
||||
grep "tag_name" |
|
||||
awk '{print substr($2, 2, length($2)-3) }')
|
||||
$STD curl -fsSLO https://github.com/dani-garcia/bw_web_builds/releases/download/$WEBVAULT/bw_web_$WEBVAULT.tar.gz
|
||||
$STD tar -xzf bw_web_$WEBVAULT.tar.gz -C /var/lib/vaultwarden/
|
||||
msg_ok "Downloaded Web-Vault"
|
||||
|
||||
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
$STD rc-update add sshd
|
||||
|
|
Loading…
Reference in New Issue