mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Compare commits
	
		
			No commits in common. "119b1c07911db0eab7ca01709a4d0467c6f377c0" and "c18d373ff75c2af44201112ea4089c87e98c577b" have entirely different histories.
		
	
	
		
			119b1c0791
			...
			c18d373ff7
		
	
		| 
						 | 
				
			
			@ -432,7 +432,6 @@ else
 | 
			
		|||
fi
 | 
			
		||||
TEMP_DIR=$(mktemp -d)
 | 
			
		||||
pushd $TEMP_DIR >/dev/null
 | 
			
		||||
export tz=$timezone
 | 
			
		||||
export SERV=$SERVER
 | 
			
		||||
export DISABLEIPV6=$DISABLEIP6
 | 
			
		||||
export APPLICATION=$APP
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -66,11 +66,6 @@ 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/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"
 | 
			
		||||
msg_ok "Network Connected: ${BL}$(ip addr show | grep 'inet ' | awk '{print $2}' | cut -d'/' -f1 | tail -n1)${CL}"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -107,10 +102,9 @@ $STD apk add mc
 | 
			
		|||
msg_ok "Installed Dependencies"
 | 
			
		||||
 | 
			
		||||
msg_info "Installing Vaultwarden"
 | 
			
		||||
$STD apk add --no-cache vaultwarden
 | 
			
		||||
$STD apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing 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
 | 
			
		||||
| 
						 | 
				
			
			@ -118,15 +112,6 @@ EOF
 | 
			
		|||
$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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue