mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-03 09:33:25 +02:00
Housekeeping fixes
This commit is contained in:
parent
813dd16e82
commit
db55759c33
2 changed files with 7 additions and 2 deletions
|
@ -247,8 +247,6 @@ EOF
|
||||||
ln -s /usr/share/adminer/latest.php /usr/share/adminer/adminer.php
|
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
|
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..."
|
echo "Setting up firewall rules..."
|
||||||
ufw allow 22/tcp
|
ufw allow 22/tcp
|
||||||
|
@ -357,6 +355,11 @@ EOF
|
||||||
}
|
}
|
||||||
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 enable caddy
|
||||||
systemctl restart caddy
|
systemctl restart caddy
|
||||||
|
|
||||||
|
|
|
@ -276,6 +276,7 @@ $c['branding'] = isset($c['branding']) ? $c['branding'] : false;
|
||||||
if (captchaInput && !captchaInput.disabled) {
|
if (captchaInput && !captchaInput.disabled) {
|
||||||
// Reload captcha after a successful response
|
// Reload captcha after a successful response
|
||||||
document.getElementById('captchaImg').src = 'captcha.php?' + Math.random();
|
document.getElementById('captchaImg').src = 'captcha.php?' + Math.random();
|
||||||
|
captchaInput.value = '';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
@ -320,6 +321,7 @@ $c['branding'] = isset($c['branding']) ? $c['branding'] : false;
|
||||||
if (captchaInput && !captchaInput.disabled) {
|
if (captchaInput && !captchaInput.disabled) {
|
||||||
// Reload captcha
|
// Reload captcha
|
||||||
document.getElementById('captchaImg').src = 'captcha.php?' + Math.random();
|
document.getElementById('captchaImg').src = 'captcha.php?' + Math.random();
|
||||||
|
captchaInput.value = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue