diff --git a/conf/data.sql b/conf/data.sql index b755974..d765968 100644 --- a/conf/data.sql +++ b/conf/data.sql @@ -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 %} diff --git a/scripts/install b/scripts/install index 53b30d8..c3ea91b 100755 --- a/scripts/install +++ b/scripts/install @@ -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;"