mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 03:01:01 +01:00
Update applicationInstaller.py
This commit is contained in:
@@ -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()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user