mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Compare commits
	
		
			No commits in common. "e6db5a353b349a203a5b61e3a6caa38ed6d39d13" and "119b1c07911db0eab7ca01709a4d0467c6f377c0" have entirely different histories.
		
	
	
		
			e6db5a353b
			...
			119b1c0791
		
	
		| 
						 | 
				
			
			@ -369,7 +369,7 @@ while [ "$opt" != "" ]; do
 | 
			
		|||
            clear
 | 
			
		||||
            echo -e "${fgred}Update Vaultwarden${normal}"
 | 
			
		||||
            apk update &>/dev/null
 | 
			
		||||
            apk upgrade &>/dev/null
 | 
			
		||||
            apk upgrade --update-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing vaultwarden
 | 
			
		||||
            
 | 
			
		||||
            break
 | 
			
		||||
            ;;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,8 +67,8 @@ if [ "$(ip addr show | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}' | c
 | 
			
		|||
  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/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"
 | 
			
		||||
| 
						 | 
				
			
			@ -119,6 +119,14 @@ $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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,9 +47,6 @@ function msg_error() {
 | 
			
		|||
msg_info "Setting up Container OS "
 | 
			
		||||
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
 | 
			
		||||
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
 | 
			
		||||
ln -sf /usr/share/zoneinfo/$tz /etc/localtime
 | 
			
		||||
for ((i=RETRY_NUM; i>0; i--)); do
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue