mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Set config file when provided (#4909)
This commit is contained in:
parent
b3f8839ef7
commit
b232e58b06
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ func (i *Config) initConfig() error {
|
|||
// if file does not exist, assume it is a new system
|
||||
if exists, _ := fsutil.FileExists(configFile); !exists {
|
||||
i.isNewSystem = true
|
||||
i.SetConfigFile(configFile)
|
||||
|
||||
// ensure we can write to the file
|
||||
if err := fsutil.Touch(configFile); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue