1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00

[fix] Upload dir into home doesn't work

This commit is contained in:
ljf 2017-02-06 00:40:26 +01:00
parent b7708fe76a
commit 974870daa5

View file

@ -10,7 +10,6 @@ user=$app
# Retrieve arguments
ynh_export domain path admin is_public language
export local_path=/var/www/$app
export data_path=/home/yunohost.app/$app
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THIS ARGS
@ -36,9 +35,6 @@ ynh_system_user_create "$user" "$local_path"
ynh_setup_source "$local_path" "$user"
# Move upload directory in yunohost.app
ynh_mv_to_home $local_path/upload
ynh_configure config.php "$local_path/application/config/config.php"
# Fill LimeSurvey database
@ -49,9 +45,8 @@ mysql -u $db_user -p$db_pwd $db_user < ./data.sql
# Set permissions
ynh_set_default_perm $local_path
ynh_set_default_perm $data_path/upload
sudo chmod u+w $local_path/tmp
sudo chmod u+w $data_path/upload
sudo chmod u+w $local_path/upload
sudo chmod u+w $local_path/application/config/
sudo yunohost app addaccess $app -u $admin