Tiny Core Extensions > TCE Talk

Can't edit nginx index.html

(1/2) > >>

nbctcp:
I try to edit /usr/local/nginx/html/index.html, but it said Read ony file system.
How to modify it

tq

Juanito:

--- Code: ---$ sudo cp /tmp/tcloop/nginx/usr/local/nginx/html/index.html /usr/local/nginx/html
$ sudo vi /usr/local/nginx/html/index.html
--- End code ---

nbctcp:
almost correct but after restart the changes gone
any idea?
tq

Rich:
Hi nbctcp

--- Quote from: nbctcp on June 14, 2018, 09:26:44 AM ---almost correct but after restart the changes gone
any idea?
tq
--- End quote ---
Yes, add the line:

--- Code: ---usr/local/nginx/html/index.html
--- End code ---
exactly as spelled to your  /opt/filetool.lst  file and run a backup before rebooting.

nbctcp:
SOLVED
small correction
these the steps

# cp /tmp/tcloop/nginx/usr/local/nginx/html/index.html /usr/local/nginx/html
# vi /usr/local/nginx/html/index.html
# echo '/usr/local/nginx/html/index.html' >> /opt/.filetool.lst
# filetool.sh -b

Navigation

[0] Message Index

[#] Next page

Go to full version