Commit 72c091d7 authored by HERBERT Ryan's avatar HERBERT Ryan

packaging server data folder clarity

In previous package releases it was unclear to which program the data
storage folders belonged. By default the upload and result folders were
created in /mnt.
They are now created in /mnt/vidjil.
parent fc624063
......@@ -308,15 +308,16 @@ case "$1" in
sudo -u www-data python -c "from gluon.main import save_password; save_password('$password',443)"
if [ ! -d /mnt/upload ] ; then
mkdir /mnt/upload
mkdir /mnt/upload/uploads
chown -R www-data:www-data /mnt/upload
if [ ! -d /mnt/vidjil_data/upload ] ; then
mkdir /mnt/vidjil_data/upload
mkdir /mnt/vidjil_data/upload/uploads
chown -R www-data:www-data /mnt/vidjil_data/upload
fi
if [ ! -d /mnt/result ] ; then
mkdir /mnt/result
chown -R www-data:www-data /mnt/result
if [ ! -d /mnt/vidjil_data/result ] ; then
mkdir /mnt/vidjil_data/result
mkdir /mnt/vidjil_data/result/results
chown -R www-data:www-data /mnt/vidjil_data/result
fi
if [ ! -e /usr/share/vidjil/server/web2py/applications/vidjil/modules/defs.py ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment