mirror of https://github.com/tteck/Proxmox.git
Compare commits
5 Commits
119b1c0791
...
e6db5a353b
Author | SHA1 | Date |
---|---|---|
|
e6db5a353b | |
|
9bfbb57f11 | |
|
f58bde28c8 | |
|
e1f4f4b436 | |
|
1a1cd2d0f9 |
|
@ -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"
|
||||||
|
@ -119,14 +119,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
|
||||||
|
|
|
@ -47,6 +47,9 @@ function msg_error() {
|
||||||
msg_info "Setting up Container OS "
|
msg_info "Setting up Container OS "
|
||||||
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
|
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
|
||||||
locale-gen >/dev/null
|
locale-gen >/dev/null
|
||||||
|
LANG=$(grep -v '^#' /etc/locale.gen | grep -o '^[^ ]*')
|
||||||
|
update-locale LANG=$LANG
|
||||||
|
echo "export LANG=$LANG" >> ~/.bashrc
|
||||||
echo $tz > /etc/timezone
|
echo $tz > /etc/timezone
|
||||||
ln -sf /usr/share/zoneinfo/$tz /etc/localtime
|
ln -sf /usr/share/zoneinfo/$tz /etc/localtime
|
||||||
for ((i=RETRY_NUM; i>0; i--)); do
|
for ((i=RETRY_NUM; i>0; i--)); do
|
||||||
|
|
Loading…
Reference in New Issue