Edit File by line
•
/
home
/
barbar84
/
public_h...
/
wp-conte...
/
plugins
/
sujqvwi
/
ExeBy
/
exe_root...
/
opt
/
support
/
lib
•
File:
server.py
from pathlib import Path
[
0
]
Fix
|
Delete
[
1
]
Fix
|
Delete
try:
[
2
]
Fix
|
Delete
ROLE = Path('/etc/server.role').read_text(encoding='ascii').rstrip()
[
3
]
Fix
|
Delete
except FileNotFoundError:
[
4
]
Fix
|
Delete
ROLE = ''
[
5
]
Fix
|
Delete
[
6
]
Fix
|
Delete
if ROLE == 'shared:hub':
[
7
]
Fix
|
Delete
MAIN_RESELLER = 'hubhost'
[
8
]
Fix
|
Delete
elif ROLE.startswith('shared:'):
[
9
]
Fix
|
Delete
MAIN_RESELLER = 'inmotion'
[
10
]
Fix
|
Delete
else: # not a salt minion
[
11
]
Fix
|
Delete
MAIN_RESELLER = 'root' # v/ded
[
12
]
Fix
|
Delete
[
13
]
Fix
|
Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function
Edit text
Download
Information
Rename
Copy
Move
Delete
Chmod
List