Fix install on xenial
This commit is contained in:
10
install
10
install
@@ -118,10 +118,14 @@ _run() {
|
|||||||
###
|
###
|
||||||
# 1- Update the apt sewers with fresh info
|
# 1- Update the apt sewers with fresh info
|
||||||
###
|
###
|
||||||
|
|
||||||
if [ -z "$wo_travis" ]; then
|
if [ -z "$wo_travis" ]; then
|
||||||
if command_exists curl; then
|
if ! {
|
||||||
apt-get update -qq
|
apt-get update --allow-releaseinfo-change -qq > /dev/null 2>&1
|
||||||
else
|
}; then
|
||||||
|
apt-get update -qq > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
if ! command_exists curl; then
|
||||||
apt-get update -qq && apt-get -y install curl -qq > /dev/null 2>&1
|
apt-get update -qq && apt-get -y install curl -qq > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ class WOAptGet():
|
|||||||
try:
|
try:
|
||||||
with open('/var/log/wo/wordops.log', 'a') as f:
|
with open('/var/log/wo/wordops.log', 'a') as f:
|
||||||
proc = subprocess.Popen(
|
proc = subprocess.Popen(
|
||||||
'DEBIAN_FRONTEND=noninteractive apt-get update '
|
'DEBIAN_FRONTEND=noninteractive apt-get update -qq',
|
||||||
'--allow-releaseinfo-change',
|
|
||||||
shell=True, stdin=None, stdout=f,
|
shell=True, stdin=None, stdout=f,
|
||||||
stderr=subprocess.PIPE, executable="/bin/bash")
|
stderr=subprocess.PIPE, executable="/bin/bash")
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|||||||
Reference in New Issue
Block a user