mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
[fix] Comment Libreform
This commit is contained in:
parent
f5b8938040
commit
4fc3a6ce4d
2 changed files with 9 additions and 7 deletions
|
@ -116,10 +116,11 @@ ynh_add_fpm_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Creating a data directory..." --weight=1
|
ynh_script_progression --message="Creating a data directory..." --weight=1
|
||||||
|
|
||||||
datadir=/home/yunohost.app/limesurvey
|
datadir=/home/yunohost.app/limesurvey/upload
|
||||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir/upload
|
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||||
mkdir -p $datadir
|
mkdir -p $datadir
|
||||||
mv "$final_path/upload" $datadir/upload
|
# Remove upload if empty
|
||||||
|
rmdir $datadir && mv "$final_path/upload" $datadir || true
|
||||||
chown -R $app:www-data "$datadir"
|
chown -R $app:www-data "$datadir"
|
||||||
chmod -R o-rwx "$datadir"
|
chmod -R o-rwx "$datadir"
|
||||||
|
|
||||||
|
@ -158,7 +159,7 @@ ynh_secure_remove --file=./data.sql
|
||||||
# Add nice themes
|
# Add nice themes
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_setup_source "$final_path/upload/templates/libreform" libreform
|
#ynh_setup_source "$datadir/upload/templates/libreform" libreform
|
||||||
#ynh_setup_source "$final_path/upload/templates/librepoll" librepoll
|
#ynh_setup_source "$final_path/upload/templates/librepoll" librepoll
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -66,10 +66,11 @@ fi
|
||||||
|
|
||||||
# If datadir doesn't exist, create it
|
# If datadir doesn't exist, create it
|
||||||
if [ -z "$datadir" ]; then
|
if [ -z "$datadir" ]; then
|
||||||
datadir=/home/yunohost.app/$app
|
datadir=/home/yunohost.app/$app/upload
|
||||||
ynh_app_setting_set --app=$app --key=datadir --value=$datadir/upload
|
ynh_app_setting_set --app=$app --key=datadir --value=$datadir
|
||||||
mkdir -p $datadir
|
mkdir -p $datadir
|
||||||
mv "$final_path/upload" $datadir/upload
|
# Remove upload if empty
|
||||||
|
rmdir $datadir && mv "$final_path/upload" $datadir || true
|
||||||
chown -R $app:www-data "$datadir"
|
chown -R $app:www-data "$datadir"
|
||||||
chmod -R o-rwx "$datadir"
|
chmod -R o-rwx "$datadir"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue