News: This forum is now permanently frozen.
Pages: [1]
Topic: keep saved a file uploaded to monowall  (Read 1157 times)
« on: October 03, 2009, 05:49:55 »
kiwa *
Posts: 1

Sorry, i know my title is not so clear, but i don't know how to say it better, but whatever, this is my question:

i made a simple page wich shows all the graphs and stuff, and then i coppied using /exec.php

then moved it to /usr/local/www/

this works great, but when i reboot, the file disapears, anyone knows a way to keep the file always saved? like any other monowall page?


Sorry about my english btw.

« Last Edit: October 03, 2009, 05:54:42 by kiwa »
« Reply #1 on: October 03, 2009, 11:47:52 »
dreamslacker *
Posts: 11

You need to mount the disk for writing.
What you're doing is at the moment is simply copying the file to the running image in memory (ram disk of sorts).

So you basically need to do the following in the exec.php page after uploading the file (replace asdf.php with the actual filename):

mount -u -o rw /cf

mv /tmp/asdf.php /cf/usr/local/www

mount -u -o ro /cf
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines