1
0
Fork 0
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:
ljf 2022-01-14 10:24:42 +01:00
parent f5b8938040
commit 4fc3a6ce4d
2 changed files with 9 additions and 7 deletions

View file

@ -116,10 +116,11 @@ ynh_add_fpm_config
#=================================================
ynh_script_progression --message="Creating a data directory..." --weight=1
datadir=/home/yunohost.app/limesurvey
ynh_app_setting_set --app=$app --key=datadir --value=$datadir/upload
datadir=/home/yunohost.app/limesurvey/upload
ynh_app_setting_set --app=$app --key=datadir --value=$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"
chmod -R o-rwx "$datadir"
@ -158,7 +159,7 @@ ynh_secure_remove --file=./data.sql
# 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
#=================================================

View file

@ -66,10 +66,11 @@ fi
# If datadir doesn't exist, create it
if [ -z "$datadir" ]; then
datadir=/home/yunohost.app/$app
ynh_app_setting_set --app=$app --key=datadir --value=$datadir/upload
datadir=/home/yunohost.app/$app/upload
ynh_app_setting_set --app=$app --key=datadir --value=$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"
chmod -R o-rwx "$datadir"
fi