From 0c201db72b6a2b048ff68110e699edd7dc119952 Mon Sep 17 00:00:00 2001 From: WhatTheServer Date: Tue, 12 Jan 2021 19:16:15 -0500 Subject: [PATCH] Update applicationInstaller.py --- plogical/applicationInstaller.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 9b004bf3a..6cd210f0d 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -385,13 +385,10 @@ $parameters = array( def installWPCLI(self): try: - command = 'wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar' + command = 'wget -O /usr/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar' ProcessUtilities.executioner(command) - command = 'chmod +x wp-cli.phar' - ProcessUtilities.executioner(command) - - command = 'mv wp-cli.phar /usr/bin/wp' + command = 'chmod +x /usr/bin/wp' ProcessUtilities.executioner(command) except BaseException as msg: @@ -1387,4 +1384,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()