Change import in stack_pref.py
This commit is contained in:
@@ -92,7 +92,7 @@ class WOStackController(CementBaseController):
|
|||||||
(['--utils'],
|
(['--utils'],
|
||||||
dict(help='Install Utils stack', action='store_true')),
|
dict(help='Install Utils stack', action='store_true')),
|
||||||
(['--cheat'],
|
(['--cheat'],
|
||||||
dict(help='Install cht.sh stack', action='store_true')),
|
dict(help='Install cheat.sh stack', action='store_true')),
|
||||||
(['--redis'],
|
(['--redis'],
|
||||||
dict(help='Install Redis', action='store_true')),
|
dict(help='Install Redis', action='store_true')),
|
||||||
(['--phpredisadmin'],
|
(['--phpredisadmin'],
|
||||||
@@ -459,15 +459,11 @@ class WOStackController(CementBaseController):
|
|||||||
'/var/lib/wo/tmp/anemometer.tar.gz',
|
'/var/lib/wo/tmp/anemometer.tar.gz',
|
||||||
'Anemometer']]
|
'Anemometer']]
|
||||||
if pargs.cheat:
|
if pargs.cheat:
|
||||||
if ((not os.path.isfile('/usr/local/bin/cht.sh')) and
|
if not os.path.isfile('/usr/local/bin/cht.sh'):
|
||||||
(not os.path.isfile('/usr/bin/cht.sh'))):
|
|
||||||
Log.debug(self, "Setting packages variable for cht.sh")
|
Log.debug(self, "Setting packages variable for cht.sh")
|
||||||
WOShellExec.cmd_exec(
|
packages = packages + [["https://cht.sh/:cht.sh",
|
||||||
self, "/usr/bin/curl https://cht.sh/:cht.sh "
|
"/usr/local/bin/cht.sh",
|
||||||
"| sudo tee /usr/local/bin/cht.sh")
|
"cheat.sh"]]
|
||||||
WOShellExec(self, "/usr/bin/curl "
|
|
||||||
"https://cheat.sh/:bash_completion | "
|
|
||||||
"sudo tee /etc/bash_completion.d/cht.sh")
|
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "cheat.sh is already installed")
|
Log.debug(self, "cheat.sh is already installed")
|
||||||
Log.info(self, "cheat.sh is already installed")
|
Log.info(self, "cheat.sh is already installed")
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import string
|
|||||||
import psutil
|
import psutil
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from wo.cli.plugins.site_functions import *
|
from wo.cli.plugins.site_functions import SiteError
|
||||||
from wo.cli.plugins.stack_services import WOStackStatusController
|
from wo.cli.plugins.stack_services import WOStackStatusController
|
||||||
from wo.core.apt_repo import WORepo
|
from wo.core.apt_repo import WORepo
|
||||||
from wo.core.aptget import WOAptGet
|
from wo.core.aptget import WOAptGet
|
||||||
|
|||||||
Reference in New Issue
Block a user