mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-09 08:15:13 +03:00
Allow to read env vars from files inside the "env.d" directory
This makes it easier to set environment variables on some operating systems. Setting configuration options from environment variables is recommended if you want to avoid the time-consuming task of merging your changes with the default configuration file after upgrading SFTPGo Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -22,6 +22,7 @@ Install-ChocolateyPackage @packageArgs
|
||||
|
||||
$DefaultDataPath = Join-Path -Path $ENV:ProgramData -ChildPath "SFTPGo"
|
||||
$DefaultConfigurationFilePath = Join-Path -Path $DefaultDataPath -ChildPath "sftpgo.json"
|
||||
$EnvDirPath = Join-Path -Path $DefaultDataPath -ChildPath "env.d"
|
||||
|
||||
# `t = tab
|
||||
Write-Output "---------------------------"
|
||||
@@ -38,7 +39,8 @@ Write-Output "Default data location:"
|
||||
Write-Output "`t$DefaultDataPath"
|
||||
Write-Output "Default configuration file location:"
|
||||
Write-Output "`t$DefaultConfigurationFilePath"
|
||||
Write-Output ""
|
||||
Write-Output "Directory to create environment variable files to set configuration options:"
|
||||
Write-Output "`t$EnvDirPath"
|
||||
Write-Output "If the SFTPGo service does not start, make sure that TCP ports 2022 and 8080 are"
|
||||
Write-Output "not used by other services or change the SFTPGo configuration to suit your needs."
|
||||
Write-Output ""
|
||||
|
||||
Reference in New Issue
Block a user