芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/vendor/xibosignage/xibo-xmr/entrypoint.sh
#!/bin/sh # Get our running IP address ip=$(ip -f inet -o addr show eth0|cut -d\ -f 7 | cut -d/ -f 1) # Write config.json echo '{' > /opt/xmr/config.json echo ' "listenOn": "tcp://'$ip':50001",' >> /opt/xmr/config.json echo ' "pubOn": ["tcp://'$ip':9505"],' >> /opt/xmr/config.json echo ' "queuePoll": '$XMR_QUEUE_POLL',' >> /opt/xmr/config.json echo ' "queueSize": '$XMR_QUEUE_SIZE',' >> /opt/xmr/config.json echo ' "debug": '$XMR_DEBUG',' >> /opt/xmr/config.json echo ' "ipv6RespSupport": '$XMR_IPV6RESPSUPPORT',' >> /opt/xmr/config.json echo ' "ipv6PubSupport": '$XMR_IPV6PUBSUPPORT >> /opt/xmr/config.json echo '}' >> /opt/xmr/config.json /usr/bin/php7 /opt/xmr/index.php