mirror of https://github.com/tteck/Proxmox.git
Merge branch 'tteck:main' into main
This commit is contained in:
commit
b9e965f0c6
|
@ -369,7 +369,7 @@ while [ "$opt" != "" ]; do
|
||||||
clear
|
clear
|
||||||
echo -e "${fgred}Update Vaultwarden${normal}"
|
echo -e "${fgred}Update Vaultwarden${normal}"
|
||||||
apk update &>/dev/null
|
apk update &>/dev/null
|
||||||
apk upgrade --update-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing vaultwarden
|
apk upgrade &>/dev/null
|
||||||
|
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -67,8 +67,8 @@ if [ "$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | c
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cat <<EOF >/etc/apk/repositories
|
cat <<EOF >/etc/apk/repositories
|
||||||
https://dl-cdn.alpinelinux.org/alpine/latest-stable/main
|
https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||||
https://dl-cdn.alpinelinux.org/alpine/latest-stable/community
|
https://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||||
https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
https://dl-cdn.alpinelinux.org/alpine/edge/testing
|
||||||
EOF
|
EOF
|
||||||
msg_ok "Set up Container OS"
|
msg_ok "Set up Container OS"
|
||||||
|
@ -125,14 +125,6 @@ $STD rc-service vaultwarden start
|
||||||
$STD rc-update add vaultwarden default
|
$STD rc-update add vaultwarden default
|
||||||
msg_ok "Installed Vaultwarden"
|
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
|
echo -e "$APPLICATION LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd
|
||||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||||
$STD rc-update add sshd
|
$STD rc-update add sshd
|
||||||
|
|
Loading…
Reference in New Issue