Change data format to make backup name easier to read
This commit is contained in:
@@ -20,7 +20,7 @@ class WOCleanController(CementBaseController):
|
|||||||
stacked_on = 'base'
|
stacked_on = 'base'
|
||||||
stacked_type = 'nested'
|
stacked_type = 'nested'
|
||||||
description = (
|
description = (
|
||||||
'Clean NGINX FastCGI cache, Opcache, Memcached, Redis Cache')
|
'Clean NGINX FastCGI cache, Opcache, Redis Cache')
|
||||||
arguments = [
|
arguments = [
|
||||||
(['--all'],
|
(['--all'],
|
||||||
dict(help='Clean all cache', action='store_true')),
|
dict(help='Clean all cache', action='store_true')),
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class WOVariables():
|
|||||||
wo_wpcli_path = '/usr/local/bin/wp'
|
wo_wpcli_path = '/usr/local/bin/wp'
|
||||||
|
|
||||||
# Current date and time of System
|
# Current date and time of System
|
||||||
wo_date = datetime.datetime.now().strftime('%d%b%Y%H%M%S')
|
wo_date = datetime.datetime.now().strftime('%d%b%Y-%H-%M-%S')
|
||||||
|
|
||||||
# WordOps core variables
|
# WordOps core variables
|
||||||
wo_distro = distro.linux_distribution(
|
wo_distro = distro.linux_distribution(
|
||||||
|
|||||||
Reference in New Issue
Block a user