diff options
author | friendica <info@friendica.com> | 2014-07-10 21:34:52 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-10 21:34:52 -0700 |
commit | c74fd789935e19074e2799b5201654ffe3bfce5c (patch) | |
tree | 4778b979ba14b16b2b994c1ee8279ee133ecf060 /install | |
parent | f2c54cfcaf9d154970a4a4c99384e267f8699022 (diff) | |
download | volse-hubzilla-c74fd789935e19074e2799b5201654ffe3bfce5c.tar.gz volse-hubzilla-c74fd789935e19074e2799b5201654ffe3bfce5c.tar.bz2 volse-hubzilla-c74fd789935e19074e2799b5201654ffe3bfce5c.zip |
move smarty compiled files to store/[data]/smarty3 - which puts all writeable areas of the server except the config file and logs under the "store" directory. We'll do logs at a future time.
Diffstat (limited to 'install')
-rw-r--r-- | install/INSTALL.txt | 8 | ||||
-rw-r--r-- | install/update.php | 11 |
2 files changed, 11 insertions, 8 deletions
diff --git a/install/INSTALL.txt b/install/INSTALL.txt index 6080ff6c7..946e83ca3 100644 --- a/install/INSTALL.txt +++ b/install/INSTALL.txt @@ -94,13 +94,11 @@ directory/path component in the URL) is REQUIRED. git pull - - make sure folders *view/tpl/smarty3* and *store* exist and are writable by webserver + - make sure folders *store/[data]/smarty3* and *store* exist and are writable by webserver - mkdir view/tpl/smarty3 - mkdir store + mkdir -p "store/\[data\]/smarty3" - chmod 777 view/tpl/smarty3 - chmod 777 store + chmod -R 777 store [This permission (777) is very dangerous and if you have sufficient privilege and knowledge you should make this directory writeable only diff --git a/install/update.php b/install/update.php index 60e8497dc..3d4ed2cf9 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1116 ); +define( 'UPDATE_VERSION' , 1117 ); /** * @@ -995,7 +995,7 @@ ADD INDEX ( `menu_flags` )"); } function update_r1091() { - @mkdir('store/[data]/smarty',STORAGE_DEFAULT_PERMISSIONS,true); + @mkdir('store/[data]/smarty3',STORAGE_DEFAULT_PERMISSIONS,true); @file_put_contents('store/[data]/locks',''); return UPDATE_SUCCESS; } @@ -1298,4 +1298,9 @@ function update_r1115() { $r = q("update account set account_flags = (account_flags ^ 1) where (account_flags & 1) "); return UPDATE_SUCCESS; -}
\ No newline at end of file +} + +function update_r1116() { + @mkdir('store/[data]/smarty3',STORAGE_DEFAULT_PERMISSIONS,true); + return UPDATE_SUCCESS; +}
\ No newline at end of file |