Add neko log path
This commit is contained in:
@@ -7,6 +7,11 @@ if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then
|
|||||||
echo "Enable Neko server"
|
echo "Enable Neko server"
|
||||||
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/neko.ini
|
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
|
# Configure nat1to1 if it is not already set
|
||||||
if [[ -z ${NEKO_NAT1TO1} ]]; then
|
if [[ -z ${NEKO_NAT1TO1} ]]; then
|
||||||
export NEKO_NAT1TO1=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
export NEKO_NAT1TO1=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||||
|
|||||||
Reference in New Issue
Block a user