mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Merge a6b334f41d
into 0fcb2c22f4
This commit is contained in:
commit
ce0a22a729
1 changed files with 8 additions and 1 deletions
|
@ -61,7 +61,8 @@ VPSPATH="server-test"
|
|||
VPSURL="https://www.openmptcprouter.com/"
|
||||
REPO="repo.openmptcprouter.com"
|
||||
CHINA=${CHINA:-no}
|
||||
|
||||
REQUIRED_PKG="ca-certificates"
|
||||
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' $REQUIRED_PKG|grep "install ok installed")
|
||||
OMR_VERSION="0.1026-test"
|
||||
|
||||
DIR=$( pwd )
|
||||
|
@ -141,6 +142,12 @@ if [ "$UPDATE" = "yes" ]; then
|
|||
fi
|
||||
echo "Update mode"
|
||||
fi
|
||||
#Checking for ca-certificates package
|
||||
echo Checking for $REQUIRED_PKG: $PKG_OK
|
||||
if [ "" = "$PKG_OK" ]; then
|
||||
echo "No $REQUIRED_PKG. Setting up $REQUIRED_PKG."
|
||||
sudo apt-get --yes install $REQUIRED_PKG
|
||||
fi
|
||||
# Force update key
|
||||
[ -f /etc/apt/sources.list.d/openmptcprouter.list ] && {
|
||||
echo "Update OpenMPTCProuter repo key"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue