From 50bf3d4185afa6d304e4230f6cdb750c5316642c Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 1 Aug 2019 17:02:39 +0200 Subject: [PATCH] Fix phpredisadmin install --- README.md | 2 +- install | 8 +++----- wo/cli/plugins/stack.py | 3 ++- wo/core/variables.py | 7 +------ 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9081778..019b5b2 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ MIT Commits GitHub release -
+
Badge Twitter Badge Slack diff --git a/install b/install index 26bbb05..83c90a8 100755 --- a/install +++ b/install @@ -182,16 +182,14 @@ wo_install_dep() { } if [ "$wo_linux_distro" == "Ubuntu" ]; then # install dependencies - DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confold" --assume-yes install build-essential curl gzip python3 python3-apt python3-setuptools python3-dev sqlite3 git tar software-properties-common pigz gnupg2 cron ccze rsync tree haveged ufw > /dev/null 2>&1 + DEBIAN_FRONTEND=noninteractive apt-get -option=Dpkg::options::=--force-confmiss --option=Dpkg::options::=--force-confold --assume-yes install build-essential curl gzip python3 python3-apt python3-setuptools python3-dev sqlite3 git tar software-properties-common pigz gnupg2 cron ccze rsync tree haveged ufw > /dev/null 2>&1 else # install dependencies - DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confold" --assume-yes install build-essential curl gzip dirmngr sudo python3 python3-apt python3-setuptools python3-dev ca-certificates sqlite3 git tar software-properties-common pigz apt-transport-https gnupg2 cron ccze rsync tree haveged ufw > /dev/null 2>&1 + DEBIAN_FRONTEND=noninteractive apt-get -option=Dpkg::options::=--force-confmiss --option=Dpkg::options::=--force-confold --assume-yes install build-essential curl gzip dirmngr sudo python3 python3-apt python3-setuptools python3-dev ca-certificates sqlite3 git tar software-properties-common pigz apt-transport-https gnupg2 cron ccze rsync tree haveged ufw > /dev/null 2>&1 # add php repository gpg key [ -d /etc/apt/trusted.gpg.d ] && { wget -qO /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg; } # add nginx repository gpg key - wget https://download.opensuse.org/repositories/home:virtubox:WordOps/Debian_9.0/Release.key -O Release.key - apt-key add - < Release.key - rm -f Release.key + curl -sL https://download.opensuse.org/repositories/home:virtubox:WordOps/Debian_10/Release.key | apt-key add - fi locale-gen en diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index da85cf6..43be6c9 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -1377,7 +1377,8 @@ class WOStackController(CementBaseController): # phpredisadmin if any('/var/lib/wo/tmp/pra.tar.gz' == x[1] for x in packages): - if not os.path.exists('{0}22222/htdocs/cache/redis' + if not os.path.exists('{0}22222/htdocs/cache/' + 'redis/phpRedisAdmin' .format(WOVariables.wo_webroot)): Log.debug(self, "Creating new directory " "{0}22222/htdocs/cache/redis" diff --git a/wo/core/variables.py b/wo/core/variables.py index 9d85fff..d553aef 100644 --- a/wo/core/variables.py +++ b/wo/core/variables.py @@ -85,12 +85,7 @@ class WOVariables(): # WordOps stack installation variables # Nginx repo and packages if wo_distro == 'ubuntu': - if wo_platform_codename == 'trusty': - wo_nginx_repo = ("deb http://download.opensuse.org" - "/repositories/home:" - "/virtubox:/WordOps/xUbuntu_14.04/ /") - else: - wo_nginx_repo = "ppa:wordops/nginx-wo" + wo_nginx_repo = "ppa:wordops/nginx-wo" elif wo_distro == 'debian': if wo_platform_codename == 'jessie': wo_nginx_repo = ("deb http://download.opensuse.org"