Resolve "Error when fetching wireguard config after Post-Install"

This commit is contained in:
Steven Foerster
2020-04-04 21:20:37 +00:00
parent 4ecda6b222
commit 1bc9f0e88f
8 changed files with 44 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# Cockpit
echo "Installing Cockpit"
figlet "Mistborn: Installing Cockpit"
if [ "$DISTRO" == "ubuntu" ]; then
echo "Ubuntu backports enabled by default"
+2
View File
@@ -1,6 +1,8 @@
#!/bin/bash
# Docker
figlet "Mistborn: Installing Docker"
# dependencies
echo "Installing Docker dependencies"
sudo apt-get install -y \
+2
View File
@@ -1,5 +1,7 @@
#!/bin/sh
figlet "Mistborn: Container Credentials"
# generate production .env file for Django
mkdir -p ./.envs/.production
DJANGO_PROD_FILE="./.envs/.production/.django"
+1 -4
View File
@@ -2,6 +2,7 @@
set -e
figlet "Mistborn: Configuring Firewall"
echo "stop iptables wrappers"
if [ "$DISTRO" == "ubuntu" ]; then
@@ -91,10 +92,6 @@ sudo ip6tables -P INPUT DROP
sudo ip6tables -P FORWARD DROP
sudo ip6tables -P OUTPUT ACCEPT
# initial load update package list
sudo apt-get update
# iptables-persistent
if [ ! "$(dpkg-query -l iptables-persistent)" ]; then
echo "Installing iptables-persistent"
+2 -2
View File
@@ -10,5 +10,5 @@ if [ "$UNAME" == "linux" ]; then
DISTRO=$(cat /etc/os-release | awk -F= '/^ID=/{print $2}')
fi
echo "UNAME: $UNAME"
echo "DISTRO: $DISTRO"
figlet "UNAME: $UNAME"
figlet "DISTRO: $DISTRO"
+2
View File
@@ -1,5 +1,7 @@
#!/bin/bash
figlet "Mistborn: Installing Wireguard"
# Wireguard
if [ "$DISTRO" == "raspbian" ]; then
echo "Adding Wireguard repo keys"