Compare commits

...

7 Commits

Author SHA1 Message Date
tteckster 9bfbb57f11
Update alpine-vaultwarden-v5.sh
change update
2023-03-11 10:09:26 -05:00
tteckster f58bde28c8
Update alpine-vaultwarden-v5-install.sh 2023-03-11 09:55:16 -05:00
tteckster e1f4f4b436
Update alpine-vaultwarden-v5-install.sh 2023-03-11 09:50:42 -05:00
tteckster 1a1cd2d0f9
Update alpine-vaultwarden-v5-install.sh
switch to edge repos
2023-03-11 09:42:23 -05:00
tteckster 119b1c0791
Update alpine-vaultwarden-v5-install.sh 2023-03-11 06:32:34 -05:00
tteckster 43f92cee14
Update alpine-vaultwarden-v5-install.sh 2023-03-11 06:22:43 -05:00
tteckster 41109f0a8d
Update cronicle-v5.sh
add export variable
fixes https://github.com/tteck/Proxmox/issues/1148
2023-03-11 04:07:19 -05:00
3 changed files with 10 additions and 2 deletions

View File

@ -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
;;

View File

@ -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

View File

@ -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