diff --git a/manifest.toml b/manifest.toml index 5cbcd20..92fbdc2 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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" diff --git a/scripts/backup b/scripts/backup index 7792996..9d63962 100644 --- a/scripts/backup +++ b/scripts/backup @@ -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" #================================================= diff --git a/scripts/install b/scripts/install index 2c211e5..8dbe76e 100755 --- a/scripts/install +++ b/scripts/install @@ -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