Auto-Backup $'Fri Oct 25 2024 01:20:39 GMT+0200 (Central European Summer Time)'

This commit is contained in:
octospacc 2024-10-25 01:47:49 +02:00
parent 41585a0ad1
commit d7a3fa16b1
2 changed files with 10 additions and 4 deletions

View File

@ -93,7 +93,13 @@ const ScriptAndGitBackup = async (folder, command, program='sh') => {
await GitPullPush();
};
const Work = async (job) => await within(Jobs[job]);
const Work = async (jobName) => {
const filterText = process.argv.slice(-1)[0];
const isFilter = filterText.endsWith('_');
if (!isFilter || (isFilter && jobName.startsWith(filterText))) {
return await within(Jobs[jobName]);
}
}
////////////////////////////////////////////////////////////////////////////////

View File

@ -47,7 +47,7 @@ server {
error_page 500 = /error.php?code=500;
access_log /var/log/nginx/root.access.log;
error_log /var/log/nginx/root.error.log;
sub_filter '</body>' '<script>top.postMessage(location.href.slice(location.origin.length), "https://hlb0it.blogspot.com")</script></body>';
sub_filter '</body>' '<script>top.postMessage(location.pathname/*.href.slice(location.origin.length)*/, "https://hlb0it.blogspot.com")</script></body>';
#sub_filter_once off;
location / {
@ -85,10 +85,10 @@ server {
#sub_filter '<a ' '</span><a ';
#sub_filter '<pre>' '<pre><span>';
#sub_filter '</pre>' '</span></pre>';
sub_filter '</head>' '\n<meta charset="utf8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/>\n<link rel="stylesheet" href="/Res/NginxIndex.css"/>\n</head>';
sub_filter '</head>' '\n<meta charset="utf8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/>\n<link rel="stylesheet" href="/Res/NginxIndex-Tweaks.css"/>\n</head>';
sub_filter '</h1>' '</h1>\n<input type="checkbox" id="ToggleMetadata" checked="checked"/><label for="ToggleMetadata"> Metadata</label>\n';
sub_filter '<h1>Index of /Drive/' '<h1>Index of <a href="/Drive/">/Drive</a>/';
sub_filter '</body>' '<script>top.postMessage(location.href.slice(location.origin.length), "https://hlb0it.blogspot.com")</script></body>';
sub_filter '</body>' '<script src="/Res/NginxIndex-Tweaks.js"></script><script>top.postMessage(location.pathname/*.href.slice(location.origin.length)*/, "https://hlb0it.blogspot.com")</script></body>';
sub_filter_once off;
}