Add neko log path

This commit is contained in:
Josh.5
2022-09-17 20:40:53 +12:00
committed by Josh Sunnex
parent b088a7adf4
commit a3294eb582

View File

@@ -7,6 +7,11 @@ if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then
echo "Enable Neko server"
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/neko.ini
# Make directories for neko
mkdir -p /var/log/neko
chmod 1777 /var/log/neko
chown ${USER} /var/log/neko
# Configure nat1to1 if it is not already set
if [[ -z ${NEKO_NAT1TO1} ]]; then
export NEKO_NAT1TO1=$(ip route get 1 | awk '{print $(NF-2);exit}')