Housekeeping fixes

This commit is contained in:
Pinga 2025-03-07 19:28:35 +02:00
parent 813dd16e82
commit db55759c33
2 changed files with 7 additions and 2 deletions

View file

@ -247,8 +247,6 @@ EOF
ln -s /usr/share/adminer/latest.php /usr/share/adminer/adminer.php
git clone --branch v1.0.16 --single-branch https://github.com/getnamingo/registry /opt/registry
mkdir -p /var/log/namingo
chown -R www-data:www-data /var/log/namingo
echo "Setting up firewall rules..."
ufw allow 22/tcp
@ -357,6 +355,11 @@ EOF
}
EOF
mkdir -p /var/log/namingo
chown -R www-data:www-data /var/log/namingo
touch /var/log/namingo/caddy.log
chown caddy:caddy /var/log/namingo/caddy.log
systemctl enable caddy
systemctl restart caddy

View file

@ -276,6 +276,7 @@ $c['branding'] = isset($c['branding']) ? $c['branding'] : false;
if (captchaInput && !captchaInput.disabled) {
// Reload captcha after a successful response
document.getElementById('captchaImg').src = 'captcha.php?' + Math.random();
captchaInput.value = '';
}
})
.catch(error => {
@ -320,6 +321,7 @@ $c['branding'] = isset($c['branding']) ? $c['branding'] : false;
if (captchaInput && !captchaInput.disabled) {
// Reload captcha
document.getElementById('captchaImg').src = 'captcha.php?' + Math.random();
captchaInput.value = '';
}
}
})