mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Set config file when provided (#4909)
This commit is contained in:
@@ -158,6 +158,7 @@ func (i *Config) initConfig() error {
|
|||||||
// if file does not exist, assume it is a new system
|
// if file does not exist, assume it is a new system
|
||||||
if exists, _ := fsutil.FileExists(configFile); !exists {
|
if exists, _ := fsutil.FileExists(configFile); !exists {
|
||||||
i.isNewSystem = true
|
i.isNewSystem = true
|
||||||
|
i.SetConfigFile(configFile)
|
||||||
|
|
||||||
// ensure we can write to the file
|
// ensure we can write to the file
|
||||||
if err := fsutil.Touch(configFile); err != nil {
|
if err := fsutil.Touch(configFile); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user