fix phpredisadmin setup
This commit is contained in:
@@ -1084,7 +1084,7 @@ class WOStackController(CementBaseController):
|
|||||||
WOFileUtils.chmod(self, "/usr/local/bin/composer", 0o775)
|
WOFileUtils.chmod(self, "/usr/local/bin/composer", 0o775)
|
||||||
Log.info(self, "Updating phpMyAdmin, please wait...")
|
Log.info(self, "Updating phpMyAdmin, please wait...")
|
||||||
WOShellExec.cmd_exec(self, "sudo -u www-data -H composer "
|
WOShellExec.cmd_exec(self, "sudo -u www-data -H composer "
|
||||||
"update --no-dev -d "
|
"update -n --no-dev -d "
|
||||||
"/var/www/22222/htdocs/db/pma/")
|
"/var/www/22222/htdocs/db/pma/")
|
||||||
# netdata install
|
# netdata install
|
||||||
if any('/tmp/kickstart.sh' == x[1]
|
if any('/tmp/kickstart.sh' == x[1]
|
||||||
@@ -1215,9 +1215,6 @@ class WOStackController(CementBaseController):
|
|||||||
|
|
||||||
if any('/tmp/pra.tar.gz' == x[1]
|
if any('/tmp/pra.tar.gz' == x[1]
|
||||||
for x in packages):
|
for x in packages):
|
||||||
Log.debug(self, 'Extracting file /tmp/pra.tar.gz to '
|
|
||||||
'loaction /tmp/')
|
|
||||||
WOExtract.extract(self, '/tmp/pra.tar.gz', '/tmp/')
|
|
||||||
if not os.path.exists('{0}22222/htdocs/cache/redis'
|
if not os.path.exists('{0}22222/htdocs/cache/redis'
|
||||||
.format(WOVariables.wo_webroot)):
|
.format(WOVariables.wo_webroot)):
|
||||||
Log.debug(self, "Creating new directory "
|
Log.debug(self, "Creating new directory "
|
||||||
@@ -1225,21 +1222,13 @@ class WOStackController(CementBaseController):
|
|||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
os.makedirs('{0}22222/htdocs/cache/redis'
|
os.makedirs('{0}22222/htdocs/cache/redis'
|
||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
if not os.path.exists('{0}22222/htdocs/cache/'
|
if os.path.isfile("/usr/local/bin/composer"):
|
||||||
'redis/phpRedisAdmin'
|
WOShellExec.cmd_exec(self, "sudo -u www-data -H "
|
||||||
.format(WOVariables.wo_webroot)):
|
"composer "
|
||||||
shutil.move('/tmp/phpRedisAdmin-master/',
|
"create-project -n -s dev "
|
||||||
'{0}22222/htdocs/cache/redis/phpRedisAdmin'
|
"erik-dubbelboer/php-redis-admin "
|
||||||
.format(WOVariables.wo_webroot))
|
"/var/www/22222/htdocs/cache"
|
||||||
|
"/redis/phpRedisAdmin/ ")
|
||||||
Log.debug(self, 'Extracting file /tmp/predis.tar.gz to '
|
|
||||||
'loaction /tmp/')
|
|
||||||
WOExtract.extract(self, '/tmp/predis.tar.gz', '/tmp/')
|
|
||||||
shutil.move('/tmp/predis-1.0.1/',
|
|
||||||
'{0}22222/htdocs/cache/redis/'
|
|
||||||
'phpRedisAdmin/vendor'
|
|
||||||
.format(WOVariables.wo_webroot))
|
|
||||||
|
|
||||||
Log.debug(self, 'Setting Privileges of webroot permission to '
|
Log.debug(self, 'Setting Privileges of webroot permission to '
|
||||||
'{0}22222/htdocs/cache/file '
|
'{0}22222/htdocs/cache/file '
|
||||||
.format(WOVariables.wo_webroot))
|
.format(WOVariables.wo_webroot))
|
||||||
|
|||||||
Reference in New Issue
Block a user