1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00
This commit is contained in:
Éric Gaspar 2024-05-26 12:42:23 +02:00
parent 2199165f32
commit 358fc5ca65
3 changed files with 4 additions and 10 deletions

View file

@ -20,7 +20,7 @@ code = "https://github.com/LimeSurvey/LimeSurvey"
cpe = "cpe:2.3:a:limesurvey:limesurvey"
[integration]
yunohost = ">= 11.0.9"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = true
@ -38,8 +38,6 @@ ram.runtime = "50M"
default = "/poll"
[install.init_main_permission]
# this is a generic question - ask strings are automatically handled by YunoHost's core
# This won't be saved as setting and will instead be used to initialize the SSOwat permission
type = "group"
default = "visitors"

View file

@ -28,15 +28,11 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="$data_dir" --is_big
#=================================================
# BACKUP THE NGINX CONFIGURATION
# SYSTEM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP THE PHP-FPM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================

View file

@ -43,7 +43,7 @@ chown -R "$app:www-data" "$install_dir"
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.php" --destination="$install_dir/application/config/config.php"
ynh_add_config --template="config.php" --destination="$install_dir/application/config/config.php"
chmod 400 "$install_dir/application/config/config.php"
chown "$app:$app" "$install_dir/application/config/config.php"
@ -66,7 +66,7 @@ ynh_exec_as "$app" "php$phpversion" "$ls_cli" install "$admin" "$password" "$ful
#=================================================
ynh_script_progression --message="Loading SQL specific config..."
ynh_add_config --template="../conf/data.sql" --destination="./data.sql"
ynh_add_config --template="data.sql" --destination="./data.sql"
ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./data.sql