Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from BrowserBox/subs-fix
Browse files Browse the repository at this point in the history
Fix interactive
o0101 authored Dec 10, 2023
2 parents 66ac7b6 + d64d2c5 commit 5a0d5e6
Showing 3 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions deploy-scripts/global_install.sh
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ initialize_package_manager() {

if command -v apt >/dev/null; then
package_manager=$(command -v apt)
./deploy-scripts/non-interactive.sh
# Check if the system is Debian and the version is 11
if [[ "$ID" == "debian" && "$VERSION_ID" == "11" ]]; then
$SUDO apt -y install wget tar
20 changes: 20 additions & 0 deletions deploy-scripts/non-interactive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Create dpkg configuration
echo "Creating dpkg configuration..."
sudo mkdir -p /etc/dpkg/dpkg.cfg.d/
cat <<EOF | sudo tee /etc/dpkg/dpkg.cfg.d/force-conf >/dev/null
confdef
confold
EOF

# Create apt configuration
echo "Creating apt configuration..."
sudo mkdir -p /etc/apt/apt.conf.d/
cat <<EOF | sudo tee /etc/apt/apt.conf.d/99force-yes >/dev/null
APT::Get::Assume-Yes "true";
APT::Get::force-yes "true";
EOF

echo "Configurations applied successfully."

7 changes: 5 additions & 2 deletions spread-channels/linode-akamai/stack-scripts/StackScript
Original file line number Diff line number Diff line change
@@ -40,8 +40,9 @@ sleep 15
distro=$(get_distro)
case $distro in
debian|ubuntu|linuxmint|pop|elementary|kali|mx|mxlinux|zorinos)
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y upgrade
DEBIAN_FRONTEND=noninteractive apt-get install -y git
export DEBIAN_FRONTEND=noninteractive
apt-get update && apt-get -y upgrade
apt-get install -y git
;;
centos|fedora|rhel|redhatenterpriseserver|almalinux|rocky|ol|oraclelinux|scientific|amzn)
yum update -y
@@ -98,3 +99,5 @@ su - "$username" <<EOF
bbpro
EOF



0 comments on commit 5a0d5e6

Please sign in to comment.