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()