1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Better unattended update.

Added DEBIAN_FRONTEND=noninteractive to a few APT commands.
This commit is contained in:
cron410 2019-07-05 14:58:34 -04:00 committed by GitHub
parent 663d12d021
commit 1abe21ecd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ elif [ -f /root/openmptcprouter_config.txt ]; then
fi
apt-get update
apt-get -y install apt-transport-https
DEBIAN_FRONTEND=noninteractive apt-get -y install apt-transport-https
# Add OpenMPTCProuter repo
echo 'deb https://repo.openmptcprouter.com stretch main' > /etc/apt/sources.list.d/openmptcprouter.list
cat <<EOF | tee /etc/apt/preferences.d/openmptcprouter.pref
@ -81,7 +81,7 @@ wget -O - http://repo.openmptcprouter.com/openmptcprouter.gpg.key | apt-key add
# Install mptcp kernel and shadowsocks
apt-get update
apt-get -y install dirmngr patch
DEBIAN_FRONTEND=noninteractive apt-get -y install dirmngr patch
#apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 379CE192D401AB61
if [ "$ID" = "debian" ]; then
#echo 'deb http://dl.bintray.com/cpaasch/deb jessie main' >> /etc/apt/sources.list