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
|
||||
###
|
||||
|
||||
if [ -z "$wo_travis" ]; then
|
||||
if command_exists curl; then
|
||||
apt-get update -qq
|
||||
else
|
||||
if ! {
|
||||
apt-get update --allow-releaseinfo-change -qq > /dev/null 2>&1
|
||||
}; 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
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -19,8 +19,7 @@ class WOAptGet():
|
||||
try:
|
||||
with open('/var/log/wo/wordops.log', 'a') as f:
|
||||
proc = subprocess.Popen(
|
||||
'DEBIAN_FRONTEND=noninteractive apt-get update '
|
||||
'--allow-releaseinfo-change',
|
||||
'DEBIAN_FRONTEND=noninteractive apt-get update -qq',
|
||||
shell=True, stdin=None, stdout=f,
|
||||
stderr=subprocess.PIPE, executable="/bin/bash")
|
||||
proc.wait()
|
||||
|
||||
Reference in New Issue
Block a user