mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 17:38:50 +01:00
parent
f3c45d0398
commit
552cff8a2c
@ -98,8 +98,10 @@ function default_settings() {
|
||||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
VLAN=""
|
||||
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||
SSH="no"
|
||||
echo -e "${DGN}(ZFS) Enable Fuse Overlayfs: ${BGN}No${CL}"
|
||||
FUSE="no"
|
||||
echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}"
|
||||
VERB="no"
|
||||
echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}"
|
||||
@ -251,6 +253,13 @@ function advanced_settings() {
|
||||
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||
SSH="no"
|
||||
fi
|
||||
if (whiptail --defaultno --title "FUSE OVERLAYFS" --yesno "(ZFS) Enable Fuse Overlayfs?" 10 58); then
|
||||
echo -e "${DGN}(ZFS) Enable Fuse Overlayfs: ${BGN}Yes${CL}"
|
||||
FUSE="yes"
|
||||
else
|
||||
echo -e "${DGN}(ZFS) Enable Fuse Overlayfs: ${BGN}No${CL}"
|
||||
FUSE="no"
|
||||
fi
|
||||
if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then
|
||||
echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}"
|
||||
VERB="yes"
|
||||
@ -281,13 +290,14 @@ function start_script() {
|
||||
clear
|
||||
start_script
|
||||
if [ "$VERB" == "yes" ]; then set -x; fi
|
||||
if [ "$CT_TYPE" == "1" ]; then
|
||||
FEATURES="nesting=1,keyctl=1"
|
||||
if [ "$FUSE" == "yes" ]; then
|
||||
FEATURES="fuse=1,keyctl=1,nesting=1"
|
||||
else
|
||||
FEATURES="nesting=1"
|
||||
FEATURES="keyctl=1,nesting=1"
|
||||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export ST=$FUSE
|
||||
export VERBOSE=$VERB
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
|
@ -98,8 +98,10 @@ function default_settings() {
|
||||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
VLAN=""
|
||||
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||
SSH="no"
|
||||
echo -e "${DGN}(ZFS) Enable Fuse Overlayfs: ${BGN}No${CL}"
|
||||
FUSE="no"
|
||||
echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}"
|
||||
VERB="no"
|
||||
echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}"
|
||||
@ -251,6 +253,13 @@ function advanced_settings() {
|
||||
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||
SSH="no"
|
||||
fi
|
||||
if (whiptail --defaultno --title "FUSE OVERLAYFS" --yesno "(ZFS) Enable Fuse Overlayfs?" 10 58); then
|
||||
echo -e "${DGN}(ZFS) Enable Fuse Overlayfs: ${BGN}Yes${CL}"
|
||||
FUSE="yes"
|
||||
else
|
||||
echo -e "${DGN}(ZFS) Enable Fuse Overlayfs: ${BGN}No${CL}"
|
||||
FUSE="no"
|
||||
fi
|
||||
if (whiptail --defaultno --title "VERBOSE MODE" --yesno "Enable Verbose Mode?" 10 58); then
|
||||
echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}"
|
||||
VERB="yes"
|
||||
@ -281,13 +290,14 @@ function start_script() {
|
||||
clear
|
||||
start_script
|
||||
if [ "$VERB" == "yes" ]; then set -x; fi
|
||||
if [ "$CT_TYPE" == "1" ]; then
|
||||
FEATURES="nesting=1,keyctl=1"
|
||||
if [ "$FUSE" == "yes" ]; then
|
||||
FEATURES="fuse=1,keyctl=1,nesting=1"
|
||||
else
|
||||
FEATURES="nesting=1"
|
||||
FEATURES="keyctl=1,nesting=1"
|
||||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export ST=$FUSE
|
||||
export VERBOSE=$VERB
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
|
@ -96,6 +96,13 @@ cat >$DOCKER_CONFIG_PATH <<'EOF'
|
||||
EOF
|
||||
|
||||
msg_info "Installing CasaOS (Patience)"
|
||||
if [ "$ST" == "yes" ]; then
|
||||
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||
cd /usr/local/bin
|
||||
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
|
||||
chmod 755 /usr/local/bin/fuse-overlayfs
|
||||
cd ~
|
||||
fi
|
||||
wget -qO- https://get.casaos.io | bash &>/dev/null
|
||||
msg_ok "Installed CasaOS"
|
||||
|
||||
|
@ -95,6 +95,13 @@ cat >$DOCKER_CONFIG_PATH <<'EOF'
|
||||
EOF
|
||||
|
||||
msg_info "Installing Umbrel (Patience)"
|
||||
if [ "$ST" == "yes" ]; then
|
||||
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||
cd /usr/local/bin
|
||||
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
|
||||
chmod 755 /usr/local/bin/fuse-overlayfs
|
||||
cd ~
|
||||
fi
|
||||
curl -sL https://umbrel.sh | bash &>/dev/null
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now umbrel-startup.service &>/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user