1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 08:46:15 +00:00

Copy config.sample.ini to the right folder.

This commit is contained in:
Fabian Schlenz 2018-04-11 06:26:05 +02:00
parent 955ae42952
commit 4d45c7f1cc

View File

@ -67,7 +67,7 @@ class Settings(val file_base: String, val database: Database, val cli_settings:
private fun copy_sample_ini(filename: String) { private fun copy_sample_ini(filename: String) {
val stream = Config::class.java.getResourceAsStream("/config.sample.ini") val stream = Config::class.java.getResourceAsStream("/config.sample.ini")
File(filename).outputStream().use { stream.copyTo(it) } File(file_base + "config.sample.ini").outputStream().use { stream.copyTo(it) }
stream.close() stream.close()
} }