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:
ericgaspar 2021-07-12 14:36:30 +02:00
parent f8b12a1c28
commit b1f0d50965
2 changed files with 6 additions and 0 deletions

View file

@ -39,3 +39,7 @@ INSERT INTO `lime_plugin_settings` (`id`, `plugin_id`, `model`, `model_id`, `key
(21, 5,NULL,NULL,'is_default','\"1\"');
INSERT INTO `lime_settings_global` VALUES ('defaultlang','__LANGUAGE__'),('AssetsVersion','2620');
{% if __IS_PUBLIC__ == "1" %}
UPDATE `lime_plugin_settings` SET value='\"0\"' WHERE `id`=21;
{% endif %}

View file

@ -135,6 +135,8 @@ ynh_add_config --template="../conf/data.sql" --destination="$final_path/data.sql
ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < $final_path/data.sql
ynh_secure_remove --file=$final_path/data.sql
#if [ $is_public -eq 1 ]
#then
# ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE `lime_plugin_settings` SET value='\"0\"' WHERE `id`=21;"