mirror of https://github.com/tteck/Proxmox.git
Compare commits
7 Commits
c18d373ff7
...
9bfbb57f11
Author | SHA1 | Date |
---|---|---|
|
9bfbb57f11 | |
|
f58bde28c8 | |
|
e1f4f4b436 | |
|
1a1cd2d0f9 | |
|
119b1c0791 | |
|
43f92cee14 | |
|
41109f0a8d |
|
@ -369,7 +369,7 @@ while [ "$opt" != "" ]; do
|
|||
clear
|
||||
echo -e "${fgred}Update Vaultwarden${normal}"
|
||||
apk update &>/dev/null
|
||||
apk upgrade --update-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing vaultwarden
|
||||
apk upgrade &>/dev/null
|
||||
|
||||
break
|
||||
;;
|
||||
|
|
|
@ -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/edge/main
|
||||
https://dl-cdn.alpinelinux.org/alpine/edge/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,7 @@ EOF
|
|||
$STD rc-service vaultwarden start
|
||||
$STD rc-update add vaultwarden default
|
||||
msg_ok "Installed Vaultwarden"
|
||||
|
||||
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