mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-08 12:38:14 -05:00
remove testing cruft
This commit is contained in:
parent
0f238a5021
commit
907e9e182d
@ -480,12 +480,10 @@ const internalAccessList = {
|
|||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let htpasswd_file = internalAccessList.getFilename(list);
|
let htpasswd_file = internalAccessList.getFilename(list);
|
||||||
let nginx_file = internalAccessList.getFilename(list) + '.conf';
|
|
||||||
|
|
||||||
// 1. remove any existing access file
|
// 1. remove any existing access file
|
||||||
try {
|
try {
|
||||||
fs.unlinkSync(htpasswd_file);
|
fs.unlinkSync(htpasswd_file);
|
||||||
fs.unlinkSync(nginx_file);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user